Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Last active December 27, 2021 04:31
Show Gist options
  • Save agusrichard/e7a8bbbb0aa6eb3c20da52a9535bb0f5 to your computer and use it in GitHub Desktop.
Save agusrichard/e7a8bbbb0aa6eb3c20da52a9535bb0f5 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
app:
build: .
volumes:
- "./:/app"
ports:
- "5000:5000"
depends_on:
- db
db:
image: amazon/dynamodb-local
restart: unless-stopped
ports:
- 8000:8000
admin:
build:
context: .
dockerfile: admin.Dockerfile
ports:
- 8001:8001
environment:
- DYNAMO_ENDPOINT=http://db:8000
- AWS_REGION=example
- AWS_ACCESS_KEY_ID=example
- AWS_SECRET_ACCESS_KEY=example
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment