-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.66 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
version: "3.8"
services:
backend-flask:
env_file:
- ./backend-flask/backend-flask.env
build: ./backend-flask
ports:
- "4567:4567"
volumes:
- ./backend-flask:/backend-flask
networks:
- cruddur-net
frontend-react-js:
env_file:
- ./frontend-react-js/frontend-react-js.env
build: ./frontend-react-js
ports:
- "3000:3000"
volumes:
- ./frontend-react-js:/frontend-react-js
networks:
- cruddur-net
#xray-daemon:
# image: "amazon/aws-xray-daemon"
# environment:
# AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
# AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
# AWS_REGION: "eu-central-1"
# command:
# - "xray -o -b xray-daemon:2000"
# ports:
# - 2000:2000/udp
# networks:
# - cruddur-net
dynamodb-local:
# https://stackoverflow.com/questions/67533058/persist-local-dynamodb-data-in-volumes-lack-permission-unable-to-open-databa
# We needed to add user:root to get this working.
user: root
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-sde
ports:
- "8000:8000"
volumes:
- "./docker/dynamodb:/home/dynamodblocal/data"
working_dir: /home/dynamodblocal
networks:
- cruddur-net
db:
image: postgres:13-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
networks:
- cruddur-net
networks:
cruddur-net:
driver: bridge
name: cruddur-net
volumes:
db:
driver: local