Lost vhost directory after each docker-compose

olsy

New Member
#1
I have a basic OLS docker-compose setup, which upon docker-compose up -d loses the admin password and all /usr/local/lsws/* vhost directories I created manually for an external app on the same docker network to which OLS acts as a proxy.
What are my options for preserving these folders, to not have to recreate them every time a deploy occurs.

One such folder is /usr/local/lsws/phpMyAdmin/
 

olsy

New Member
#3
I thought of that too, but I'm not sure if there are some things that need to be updated when a new OLS version ships.
 

olsy

New Member
#4
I just realized that $VH_ROOT can point outside lsws dir, so I placed it at /var/www/vhosts/$VH_NAME/.
Works for now, and it's backed by a Docker volume.
 
Last edited:
Top