amazon-ecs-cli icon indicating copy to clipboard operation
amazon-ecs-cli copied to clipboard

Extension Fields

Open esetnik opened this issue 6 years ago • 3 comments

Summary

Does ecs-cli support docker-compose v3.4 extension fields syntax? https://docs.docker.com/compose/compose-file/#extension-fields

Description

version: '3.4'

x-db-variables: &db-variables
    SQL_DATABASE: Test123
    SQL_HOST: test.com
    SQL_USER: test
    SQL_PASSWORD: test_pw
    SQL_PORT: 1433

services:
  frontend:
    build:
      context: ./frontend
    environment:
      <<: *db-variables
    restart: always
    ports:
      - 3000:3000
    volumes:
      - ./frontend:/usr/src/app'

esetnik avatar Nov 07 '18 20:11 esetnik

Hi @esetnik - we don't currently support extension fields, but we can take this as a feature request. Do you want to reuse configuration settings across multiple services?

allisaurus avatar Nov 12 '18 17:11 allisaurus

I need to share db connection details across a few containers which are specified in a single docker-compose file.

esetnik avatar Nov 12 '18 19:11 esetnik

Please support this. OMG. when I use docker compose up it successfully imports these fields and containers come up with environment variables. I can't specify the keypair / keyname in ecs_params.yaml ! so I have to use ecs_cli but now this doesn't work.

johndpope avatar Sep 15 '21 00:09 johndpope