Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Created June 20, 2018 18:07
Show Gist options
  • Save nathanpeck/da7e792e7443192612d896abfa8cc7f7 to your computer and use it in GitHub Desktop.
Save nathanpeck/da7e792e7443192612d896abfa8cc7f7 to your computer and use it in GitHub Desktop.
version: "3"
networks:
chat:
services:
# Launch the Redis used for syncing messages between copies of the client app
redis:
image: redis
networks:
- chat
ports:
- 6379:6379
# Launch a local version of DynamoDB
dynamodb-local:
networks:
- chat
build: ./deps/dynamodb-local
ports:
- 8000:8000
# Ephemeral container used for creating the tables in DynamoDB
dynamodb-tables:
depends_on:
- dynamodb-local
networks:
- chat
build: ./deps/dynamodb-tables
environment:
DYNAMODB_ENDPOINT: http://dynamodb-local:8000
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
# The actual client application
client:
depends_on:
- redis
- dynamodb-tables
networks:
- chat
build: ./services/client
environment:
LOCAL: "true"
ENV_NAME: test
REDIS_ENDPOINT: redis
DYNAMODB_ENDPOINT: http://dynamodb-local:8000
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
ports:
- 3000:3000
# The test suite
test:
depends_on:
- client
networks:
- chat
build: ./services/test-suite
environment:
SELF_URL: http://client:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment