amazon-ecs-cli
amazon-ecs-cli copied to clipboard
Extension Fields
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'
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?
I need to share db connection details across a few containers which are specified in a single docker-compose file.
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.