-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
73 lines (67 loc) · 1.4 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
version: "3.7"
volumes:
dev_db_data:
dev_clinicaldb_data:
services:
db:
image: "postgres:${POSTGRES_VERSION}"
env_file:
- docker/dev/envs/postgres
volumes:
- dev_db_data:/var/lib/postgresql/data
ports:
- "5432"
clinicaldb:
image: "postgres:${POSTGRES_VERSION}"
env_file:
- docker/dev/envs/postgres
volumes:
- dev_clinicaldb_data:/var/lib/postgresql/data
ports:
- "5432"
runserver:
build:
context: .
dockerfile: docker/dev/Dockerfile
image: ${TRRF_IMAGE_NAME}
env_file:
- docker/dev/envs/postgres
- docker/dev/envs/runserver
- .env_local
restart: on-failure
volumes:
- .:/app
- ./data/dev/:/data
ports:
- "8000:8000"
depends_on:
- db
- clinicaldb
- xray-daemon
longitudinal-followup-lambda:
image: ${TRRF_IMAGE_NAME}
env_file:
- docker/dev/envs/postgres
- docker/dev/envs/runserver
- .env_local
volumes:
- .:/app
- ./data/dev/:/data
ports:
- "8001:8080"
depends_on:
- db
- clinicaldb
- xray-daemon
working_dir: /app
command:
- lambda_local
- lambda.longitudinal_followup_handler
xray-daemon:
image: amazon/aws-xray-daemon:3.2.0
ports:
- "2000"
- "2000/udp"
env_file:
- .env_local
command: ["-o", "--bind", "0.0.0.0:2000"]