Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ service options in one place and refer to it from anywhere. You can refer to
another Compose file and select a service you want to also use in your own
application, with the ability to override some attributes for your own needs.

> [!IMPORTANT]
>
> `extends` in not supported in `docker stack`, only in `docker compose`, for obscure reasons. Running `docker stack config` on a compose file that uses it will result in the following useless message: “Configuration contains forbidden properties”.

> [!IMPORTANT]
>
> When you use multiple Compose files, you must make sure all paths in the files
Expand Down
2 changes: 2 additions & 0 deletions content/reference/compose-file/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,8 @@ Compose does not automatically import these referenced resources into the extend

Circular references with `extends` are not supported, Compose returns an error when one is detected.

`extends` in not supported in `docker stack`, only in `docker compose`, for obscure reasons.

#### Finding referenced service

`file` value can be:
Expand Down