Mount files but not in files directory #1407
Replies: 2 comments
-
I'm curious, why can't you change the directory? it's as simple as using ../files/.env? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. The production code is being deployed on another server, and it is already working, so I don't want to touch it. I can create a new branch like I can create another By the way, I just wanted to know if we can do it or not. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I have a Docker Compose file with two different projects inside—let's say
front
andback
. I want to mount the./front/.env
and./back/.env
files inside their respective containers.The codebase is already in place, and I cannot change its structure. I want to know if there is flexibility in defining the mount path in general, not just within the
files
folder.Here’s a sample
docker-compose.yml
file:Thanks!
Beta Was this translation helpful? Give feedback.
All reactions