Docker Compose include problem
Description
- Since this week the starting of the
tsm-orchestrionrepository in combination with thedocker-compose-dev.ymlthrows an error- meaning the following command:
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
- meaning the following command:
- Reason:
- it first tries to merge the two docker-compose files declared by the
-foption - then the
includes defined indocker-compose.ymlwill be merged --> but an error will be thrown when a service is already defined - so
includeis the problem here
- it first tries to merge the two docker-compose files declared by the
- Note:
- We still don't know why this happend this week, as the split in several docker-compose files was a few weeks ago (and it worked)
Possible solution
- Remove
include - Only use
-fto combine the several docker-compose files - Provide scripts to run and stop the services
- Update Readme
Update 2024-01-30 Solution
- We'll remove the include keyword from the
docker-compose.yml - Reintegrated the separate services from
docker-compose-base.ymlanddocker-compose-worker.ymlintodocker-compose.yml - remove
docker-compose-base.ymlanddocker-compose-worker.yml - keep the script to start and stop:
up.shup-with-dev.shdowndown-with-dev.sh
Edited by Tobias Kuhnert