ecs-agent:
  image: amazon/amazon-ecs-agent
  labels:
    io.rancher.os.scope: system
    io.rancher.os.after: docker
  restart: always
  volumes:
  - /var/run/:/var/run/
  - /var/log/ecs/:/log
  - /var/lib/ecs/data:/data
  - /sys/fs/cgroup:/sys/fs/cgroup:ro
  - /var/run/docker/execdriver/native:/var/lib/docker/execdriver/native:ro
  ports:
  - "127.0.0.1:51678:51678"
  environment:
  - ECS_LOGFILE=/log/ecs-agent.log
  - ECS_LOGLEVEL=info
  - ECS_DATADIR=/data
  - ECS_*
  - AWS_*

ecs-agent:
  image: amazon/amazon-ecs-agent${ECS_AGENT_VERSION}
  labels:
    io.rancher.os.scope: system
    io.rancher.os.after: docker
  restart: always
  volumes:
  - /var/run/:/var/run/
  - /var/log/ecs/:/log
  - /var/lib/ecs/data:/data
  - /sys/fs/cgroup:/sys/fs/cgroup:ro
  - /var/run/docker/execdriver/native:/var/lib/docker/execdriver/native:ro
  ports:
  - "127.0.0.1:51678:51678"
  environment:
  - ECS_LOGFILE=/log/ecs-agent.log
  - ECS_LOGLEVEL=info
  - ECS_DATADIR=/data
  - ECS_*
  - AWS_*

Allow ECS agent version to be customized
Allow ECS agent version to be customized
