Relative Content

Tag Archive for dockerdocker-composedocker-volume

Use a shared folder in the Compose

I want to create a docker container with a Dockerfile, Compose.yaml and a .env file. In the Dockerfile I create a image based on python, the Dockerfile:

Bind mounts in docker compose

I am not being able to create a bind mount. I have tried different ways to create it but when I run my containers, nothing is being saved in the bind mount location I assignedk, so it remains empty.
The location is ‘/home/y3qucfm/ods/system_controller/storage-spooler’, my docker_compose.yml is also inside system_controller since I have read that it has to be in the same location as the .yml (if not please let me know so I can move it one folder outside :slight_smile: )