3 ms·
You can run docker-compose.yml in any folder in the tree but it only reads the .env from cwd. Just CD into some place and run docker-compose
by gravypod 7y ago
You can run docker-compose.yml in any folder in the tree but it only reads the .env from cwd. Just CD into some place and run docker-compose
- ddtaylor 7y agoThank you for the clarification.
- ohiovr 7y agoThis works. I discovered this by accident trying to figure out why my .env files were not being read. I was in a different dir to the docker-compose.yml file and launched docker-compose with the -f filename option and could not get .env to load.