Skip to content

Shared Extension Fields between include files #323

@GuyKh

Description

@GuyKh

Hey,

Looking at this structure - there's a "main" docker-compose file which includes small, "by-service" compose files (in compose folder).

However, despite I see the use of Extension Fields (i.e. <<: *common-keys-core in archive folder files) - I don't see it's being used as part of this divide strategy.
Is this possible?

E.g.

docker-compose-ws.yml:

... # Keys common to some of the core services that we always to automatically restart on failure x-common-keys-core: &common-keys-core networks: - npm_proxy security_opt: - no-new-privileges:true restart: always ... include: ... - compose/$HOSTNAME/portainer.yml ... 

portainer.yml:

services: # Portainer - WebUI for Containers portainer: container_name: portainer <<: *common-keys-core ... 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions