compose: [BUG] Services in included compose files are not brought up with `docker compose up`

Description

To get around the restrictions/issues with 2.24 in https://github.com/docker/compose/issues/11568, I have switched from using extends: to have a structured multi-file compose project to includes:. However, when I run docker compose up, services in the included files are not brought up. I don’t see much documentation about this, and I’m not sure how I’d go about including these into the compose project. The include terminology implies, to me, that this should work, but I guess these are treated as separate somehow and thus are not brought up?

Steps To Reproduce

No response

Compose Version

Docker Compose version v2.24.7

Docker Environment

Client: Docker Engine - Community
 Version:    25.0.4
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.7
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

@luciangabor I figured it out; it was unrelated to compose at all and had to do with a wrapper script we use for docker compose (which I should have checked first before coming here). sorry for wasting time, thanks again for your support!

That really looks like a new bug - it would be great if you’d be able to isolate the cause/condition (maybe even by comparing 2.24.6 to 2.24.7 to see if it is not a brand new one)