Skip to content

Docker Compose include problem

Description

  • Since this week the starting of the tsm-orchestrion repository in combination with the docker-compose-dev.yml throws an error
    • meaning the following command: docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
  • Reason:
    • it first tries to merge the two docker-compose files declared by the -f option
    • then the includes defined in docker-compose.yml will be merged --> but an error will be thrown when a service is already defined
    • so include is the problem here
  • 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 -f to 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.yml and docker-compose-worker.yml into docker-compose.yml
  • remove docker-compose-base.yml and docker-compose-worker.yml
  • keep the script to start and stop:
    • up.sh
    • up-with-dev.sh
    • down
    • down-with-dev.sh
Edited by Tobias Kuhnert