Skip to content

Feature request: Export service replica index to container via some environment variable or system file #9153

@vlad-vinogradov

Description

@vlad-vinogradov

Since docker-compose service can be scaled, it would be useful to export to each container the replica ordinal index as some environment variable or the contents of some system file. This index can be used, for example, to create replicas own subdirectories if all replicas use the same host path as bind mounts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions