Skip to content

How to load yml registry configuration when using docker-compose #643

Closed

Description

@dewvow

Hey,
I'm trying to figure out how to configure the registry configuration using yml syntax when running a container with docker-compose.

I understood one could use the environment fields in docker-compose.yml to override the container's environment variables, but this is terrible as it doesn't use the easy-to-use yml syntax.

Thanks.

Activity

  1. dewvow commented on Jun 18, 2015

    @dewvow
    Author

    I ended up mounting the config.yml to /go/src/github.com/docker/distribution/cmd/registry/config.yml

    hope this helps someone.

  2. dmp42 commented on Jun 18, 2015

    @dmp42
    Contributor

    @C0rnFlex

    but this is terrible as it doesn't use the easy-to-use yml syntax.

    A compose file is YML.

    Furthermore, we are likely going to deprecate the use of config.yml for the registry, and allow only environment variables. YML is a terrible idea for config files, regularly tripping people over.

    See for example http://12factor.net/config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions