Answer the question
In order to leave comments, you need to log in
How to force volumes Docker compose not to overwrite data from a container?
Forwarding a volume to docker-compose
volumes:
- ./www:/var/www/html
Answer the question
In order to leave comments, you need to log in
I expect that files from the var/www/html directory will get to the host in ./www
volumes:
- /папка_на_хосте:/папка_в_контейнере_1
- имя_тома:/папка_в_контейнере_2
After that, if a file is created inside the container in this folder, it ends up in the host_folder or volume. WordPress looksentrypoint.sh
container.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question