New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent storage volumes #112
Comments
The folder that needs mapping is the apache htdocs folder sudo docker volume create vvveb-volume sudo docker run -p 8080:80 --mount source=vvveb-volume,target=/var/www/html vvveb/vvvebcms Or with docker compose services:
frontend:
image: vvveb/vvvebcms:latest
volumes:
- vvveb-volume:/var/www/html
volumes:
vvveb-volume:
external: true |
You have to mount the entire site? Is there not just a data/config folder that can be bound? Is there a way to use bind mounts? I personalty don’t find named-volumes very tangible. Having the ability to place the content wherever on the system is a necessity. |
You can bind If you use SQLite then you can also mount the database folder sudo docker run -p 8080:80 \
--mount type=bind,source="$(pwd)"/config,target=/var/www/html/config \
--mount type=bind,source="$(pwd)"/media,target=/var/www/html/public/media \
vvveb/vvvebcms |
Without it, every time I restart the container I get sent back to the initial setup process. Error message if it’s useful:
|
Docker does not copy the existing files into bind mounts, and because You need to connect to the container, download and unzip the cms files to copy the files to the empty bind mounts folders. docker exec -it <mycontainer> bash curl -Lo /tmp/vvveb.zip https://www.vvveb.com/download.php unzip /tmp/vvveb.zip -d /var/www/html |
What folders should be mapped for persistent storage? In the docs “Install using docker” it just says
docker run -p 8080:80 vvveb/vvvebcms:latest
.The text was updated successfully, but these errors were encountered: