-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
api:
restart: always
build: ./api
environment:
- FLASK_DEBUG=true
- DYNAMO_ENDPOINT=http://dynamodb:8000
- DYNAMO_TABLE=bubblecheck
- COGNITO_URL=$COGNITO_URL
- COGNITO_CLIENT_ID=$COGNITO_CLIENT_ID
- AWS_REGION=local
- AWS_ACCESS_KEY_ID=dummy-access-key
- AWS_SECRET_ACCESS_KEY=dummy-access-key-secret
- LOCAL_REACT_HOST=web:3000
ports:
- "5000:5000"
volumes:
- "$PWD_FULL_PATH/api:/app"
depends_on:
- dynamodb
- dynamodb-table-create
dynamodb-table-create:
build: ./docker/dynamodb-table-create
environment:
- DYNAMO_ENDPOINT=http://dynamodb:8000
- DYNAMO_TABLE=bubblecheck
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
# For viewing dynamodb tables; accessible at localhost:8001
dynamodb-admin:
restart: always
build: ./docker/dynamodb-admin
environment:
- DYNAMO_ENDPOINT=http://dynamodb:8000
ports:
- "8001:8001"
expose:
- "8001"
dynamodb:
restart: always
image: amazon/dynamodb-local:latest
ports:
- "8000:8000"
expose:
- "8000"
command: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-inMemory"]
web:
restart: always
build: ./web
environment:
- CHOKIDAR_USEPOLLING=true # Ensure the container sees local file changes
ports:
- "3000:3000"
volumes:
- "$PWD_FULL_PATH/web/src:/app/src"
- "$PWD_FULL_PATH/web/public:/app/public"
nginx:
restart: always
build: ./docker/nginx
ports:
- "8080:8080"
expose:
- "8080"
depends_on:
- web
- api