-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3'
services:
web:
build: .
ports:
- "5000:5000"
environment:
- AWS_ACCESS_KEY_ID="abc123"
- AWS_SECRET_ACCESS_KEY="abc123"
- AWS_DEFAULT_REGION="us-west-2"
- DYNAMODB_ENDPOINT=http://dynamodb:8000
- REDIS_ENABLED="True"
- REDIS_HOST=redis
- FLASK_ENV=development
- FLASK_URL=http://localhost:8080
depends_on:
- dynamodb
redis:
image: redis:5-alpine
ports:
- "6379:6379"
dynamodb:
image: amazon/dynamodb-local
command: "-jar DynamoDBLocal.jar -inMemory -delayTransientStatuses"
ports:
- "8000:8000"
aws-cli:
image: mesosphere/aws-cli
environment:
- AWS_ACCESS_KEY_ID="abc123"
- AWS_SECRET_ACCESS_KEY="abc123"
- AWS_DEFAULT_REGION="us-west-2"
command: dynamodb create-table --cli-input-json "file://dynamodb-table.json" --endpoint-url "http://dynamodb:8000"
volumes:
- ./scripts/dynamodb-table.json:/project/dynamodb-table.json
nginx:
image: "nginx:alpine"
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8080:8080"
depends_on:
- web