Open
Description
Sometimes multiple Docker compose files form a hierarchy to avoid duplication as described here https://docs.docker.com/compose/extends/
We for example have
- docker-compose.yml
- docker-compose.override.yml
- docker-compose-ci.yml
- docker-compose-deploy.yml
First two are used when running the application locally. Files contain sensible default configuration (for example ports or application properties) and contain no variables to substitute. The last two files serve special purposes in the CD pipeline and either add, override or use the configuration from the first file.
Application is deployed to Swarm with command:
docker-compose -f docker-compose.yml -f docker-compose-deploy.yml up -d
Locally you can just run:
docker-compose up -d
Metadata
Metadata
Assignees
Labels
No labels