forked from eresearchqut/trrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (73 loc) · 1.59 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
75
76
77
78
79
80
81
version: '3.7'
volumes:
dev_db_data:
dev_clinicaldb_data:
dev_reportingdb_data:
services:
db:
# TODO time to upgrade? (all postgres images)
image: postgres:10.7
env_file:
- docker/dev/envs/postgres
volumes:
- dev_db_data:/var/lib/postgresql/data
ports:
- "5432"
clinicaldb:
image: postgres:10.7
env_file:
- docker/dev/envs/postgres
volumes:
- dev_clinicaldb_data:/var/lib/postgresql/data
ports:
- "5432"
reportingdb:
image: postgres:10.7
env_file:
- docker/dev/envs/postgres
volumes:
- dev_reportingdb_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
- reportingdb
- xray-daemon
node:
build:
context: .
dockerfile: docker/dev/Dockerfile-node
stop_signal: SIGKILL
image: ${NODE_IMAGE_NAME}
command: watch
working_dir: ${TRRF_SOURCE_DIR:-/app}/rdrf/rdrf/frontend
environment:
YARN_CACHE_FOLDER: /opt/yarn_cache
volumes:
- .:/app
- ./data/dev/:/data
- ./yarn_cache:/opt/yarn_cache
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"]