awslabs / amazon-ecs-local-container-endpoints

A container that provides local versions of the ECS Task Metadata Endpoint and ECS Task IAM Roles Endpoint.
Apache License 2.0
496 stars 54 forks source link

docker-compose file version 3.0 #20

Open noahtrilling opened 5 years ago

noahtrilling commented 5 years ago

This is a great project!

I'm just curious if there is a functional reason why the tutorial hasn't been updated to specify version 3 of the docker-compose files. I was able to remove the 'gateway' configuration of the credentials network (no longer honored in v3 of docker-compose) and the local container endpoint continued to vend my ECS task credentials perfectly. I was curious if other use cases aren't supported by the new docker-compose configuration schema or if the documentation is simply behind.

Thanks!

PettitWesley commented 5 years ago

@noah-trilling All use cases will work with V3 Compose syntax.

ryanpeterson commented 4 years ago

The docker-compose files do not work "as-is" with version 3. The first error that one will run into is documented here: https://github.com/docker/compose/issues/4366

nickhammond commented 4 years ago

Seeing the same thing here trying to configure a local ECS + fargate setup. Here's the section in the v3 compose documentation that mentions gateway is currently only supported on v2 - https://docs.docker.com/compose/compose-file/#enable_ipv6

Additional IPAM configurations, such as gateway, are only honored for version 2 at the moment.