Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates the docker-compose.yml to 3.8 #48

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "3.8"
networks:
# This special network is configured so that the local metadata
# service can bind to the specific IP address that ECS uses
Expand All @@ -8,7 +8,6 @@ networks:
ipam:
config:
- subnet: "169.254.170.0/24"
gateway: 169.254.170.1
services:
# This container vends credentials to your containers
ecs-local-endpoints:
Expand All @@ -26,8 +25,9 @@ services:
AWS_PROFILE: "default"
networks:
credentials_network:
# This special IP address is recognized by the AWS SDKs and AWS CLI
ipv4_address: "169.254.170.2"
# Use an alias to connect to the endpoints
aliases:
- endpoints

# Here we configure the application container that we are testing
# You can test multiple containers at a time, simply duplicate this section
Expand All @@ -37,11 +37,10 @@ services:
- ecs-local-endpoints
networks:
credentials_network:
ipv4_address: "169.254.170.3"
environment:
AWS_DEFAULT_REGION: "us-east-1"
# This ENV VAR enables credentials
# Set it to "/creds" or "/role/<role name>"
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI: "/creds"
# Enables V3 Metadata
ECS_CONTAINER_METADATA_URI: "http://169.254.170.2/v3"
ECS_CONTAINER_METADATA_URI: "http://endpoints/v3"