Skip to content

Support for converting docker-compose.yml files using YAML Merge Key #1038

Closed
@eengelking

Description

My team often uses YAML merge keys to keep our docker-compose.yml files small and to prevent repetition of tasks within the file. Support for converting these would be very beneficial.

http://yaml.org/type/merge.html

I'm currently receiving the following errors when attempting to convert the files ATM:

Service 'portal' configuration key 'logging' contains an invalid type, it should be an array or object

Example configuration:

 cli:
    image: <imageURL>
    logging: &cli-logging
      driver: 'json-file'
      options:
        max-size: '200k'
        max-file: 5

  portal:
    image: <imageURL>
    logging:
      <<: *cli-labels

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions