-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
129 lines (124 loc) · 3.3 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: "3"
services:
redis:
container_name: ctmd-redis-dev
build:
context: ./redis/
dockerfile: Dockerfile
restart: always
environment: {}
volumes:
- /data
expose:
- 6379
command: ["--appendonly", "yes"]
pipeline:
container_name: ctmd-pipeline-dev
image: txscience/ctmd-pipeline-reload:v2.11
restart: always
environment:
POSTGRES_DATABASE_NAME: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
POSTGRES_HOST: db
REDCAP_APPLICATION_TOKEN: $REDCAP_APPLICATION_TOKEN
REDCAP_URL_BASE: $REDCAP_URL_BASE
POSTGRES_DUMP_PATH: /backup
AUXILIARY_PATH: /auxiliary
FILTER_PATH: /filter
BLOCK_PATH: ./block
RELOAD_SCHEDULE: $RELOAD_SCHEDULE
RELOAD_DATABASE: $RELOAD_DATABASE
SCHEDULE_RUN_TIME: $SCHEDULE_RUN_TIME
SERVER: 1
REDIS_QUEUE_HOST: redis
REDIS_QUEUE_PORT: 6379
REDIS_QUEUE_DB: 0
REDIS_LOCK_HOST: redis
REDIS_LOCK_PORT: 6379
REDIS_LOCK_DB: 1
REDIS_LOCK_EXPIRE: 7200
REDIS_LOCK_TIMEOUT: 7200
TASK_TIME: 7200
SPARK_EXECUTOR_MEMORY: 8g
SPARK_DRIVER_MEMORY: 8g
PAUSE: $PAUSE
DATA_INPUT_FILE_PATH: $DATA_INPUT_FILE_PATH
DOWNLOAD_REDCAP_DATA: $DOWNLOAD_REDCAP_DATA
CREATE_TABLES: $CREATE_TABLES
GLOBAL_WRITE_PERMISSIONS: $GLOBAL_WRITE_PERMISSIONS
LOCAL_ENV: 'true'
volumes:
- $POSTGRES_DUMP_PATH:/backup
- $AUXILIARY_PATH:/auxiliary
- $FILTER_PATH:/filter
- $BLOCK_PATH:/block
- $MAPPING_LOCAL_PATH:/mapping.json
- $DATA_INPUT_FILE_PATH:/syntheticDataset.json
- ./redcap_data_dictionary_export.json:/redcap_data_dictionary_export.json
depends_on:
- db
- redis
ports:
- 5000:5000
db:
container_name: ctmd-db-dev
restart: always
build:
context: ./db/
dockerfile: Dockerfile
environment:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
volumes:
- ./db/data:/var/lib/postgresql/data
expose:
- ${POSTGRES_PORT}
ports:
- 5432:5432
api:
container_name: ctmd-api-dev
build:
context: ./api/
dockerfile: Dockerfile
volumes:
- ./api:/usr/src/app
- /usr/src/app/node_modules/
ports:
- $API_PORT:$API_PORT
environment:
AUTH_ENV: development
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_PORT: $POSTGRES_PORT
POSTGRES_DB: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
FUSE_AUTH_API_KEY: $AUTH_API_KEY
DASHBOARD_URL: $DASHBOARD_URL
REACT_APP_API_ROOT: $REACT_APP_API_ROOT
NODE_ENV: development
API_SESSION_SECRET: $API_SESSION_SECRET
AUTH_URL: $AUTH_URL
depends_on:
- db
restart: always
frontend:
container_name: ctmd-frontend-dev
build:
context: ./frontend/
dockerfile: Dockerfile
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
environment:
NODE_ENV: development
REACT_APP_IS_HEAL_SERVER: $IS_HEAL_SERVER
ports:
- 3000:3000
depends_on:
- api
- pipeline
restart: always