-
Hi, I've just recently started migrating my entire setup to Docker so I'm rather new at all this. I've been rewriting the docker compose files since I'm using it to dockerize another symfony based project. Since I want to do it the right way, I'm trying to follow the setup used in this project, where there's one main file and other 'override' compose files to avoid duplicate code. Now I was wondering how the In production I understand that it knows to use I've searched online and have found the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi By default, Compose reads two files, a docker-compose.yml and an optional docker-compose.override.yml file. The override file can contain configuration overrides for existing services or entirely new services. Doc here : https://docs.docker.com/compose/multiple-compose-files/ |
Beta Was this translation helpful? Give feedback.
Hi
By default, Compose reads two files, a docker-compose.yml and an optional docker-compose.override.yml file. The override file can contain configuration overrides for existing services or entirely new services.
The Extend functionality allows you to extend a compose file by referring to another Compose file and selecting the bits you want to use in your own application, with the ability to override some attributes.
Doc here : https://docs.docker.com/compose/multiple-compose-files/