-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
160 lines (148 loc) · 4.47 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
services:
# FHIR Server for testing/simulating
# replace it with the productive FHIR Server and/or configure this
# FHIR Server in the services below.
# blaze-DIC:
# image: "samply/blaze:latest"
# restart: unless-stopped
# environment:
# BASE_URL: "http://localhost:8080"
# LOG_LEVEL: ${BLAZE_LOG_LEVEL:-info}
# JAVA_TOOL_OPTIONS: ${BLAZE_JVM_ARGS:--Xmx4g}
# DB_BLOCK_CACHE_SIZE: ${BLAZE_BLOCK_CACHE_SIZE:-256}
# DB_RESOURCE_CACHE_SIZE: ${BLAZE_DB_RESOURCE_CACHE_SIZE:-1000000}
# DB_RESOURCE_HANDLE_CACHE_SIZE: ${BLAZE_DB_RESOURCE_HANDLE_CACHE_SIZE:-1000000}
# ports:
# - "127.0.0.1:8080:8080"
# networks:
# - internal
# - external
# volumes:
# - "blaze-data-DIC:/app/data"
# SQL Server for redcap
redcap_db:
image: mariadb:11
restart: unless-stopped
environment:
TZ: Europe/Berlin
MARIADB_ROOT_PASSWORD_FILE: /run/secrets/redcap_db_root.password
MARIADB_DATABASE: redcap
MARIADB_USER: redcap
MARIADB_PASSWORD_FILE: /run/secrets/redcap_db.password
secrets:
- redcap_db_root.password
- redcap_db.password
networks:
- internal
volumes:
- ./REDCap-db/mariadb.cnf:/etc/mysql/mariadb.cnf
- redcap-db-data:/var/lib/mysql
- ./REDCap-db/init:/docker-entrypoint-initdb.d
#- ./.my.cnf:/root/.my.cnf
#command: --default-authentication-plugin=mysql_native_password
# Frontend (redcap)
redcap:
build: ./REDCap-app/build
#user: "www-data:www-data"
depends_on:
- redcap_db
restart: unless-stopped
networks:
- internal
- external
ports:
- "127.0.0.1:8082:80"
environment:
TZ: Europe/Berlin
volumes:
- ./REDCap-app/html/redcap:/var/www/html/redcap
- ./REDCap-app/html/redcapdocs:/var/www/html/redcapdocs
- ./REDCap-app/build/config/php.ini:/usr/local/etc/php/conf.d/my.ini
- ./REDCap-app/log/:/var/log/
# Database (postgres) for CDS_HUB
cds_hub:
build: ./Postgres-cds_hub/build
restart: unless-stopped
# healthcheck:
# test: [ "CMD-SHELL", "pg_isready -U postgres -d cds_hub" ]
# interval: 10s
# timeout: 5s
# retries: 5
ports:
- "15432:5432"
environment:
TZ: Europe/Berlin
POSTGRES_PASSWORD_FILE: /run/secrets/cds_hub_db_admin.password
POSTGRES_USER: cds_hub_db_admin
POSTGRES_DB: cds_hub_db
command: "-c config_file=/etc/postgresql.conf"
secrets:
- cds_hub_db_admin.password
networks:
- internal
volumes:
- cds_hub_db-data:/var/lib/postgresql/data
- ./Postgres-cds_hub/postgresql.conf:/etc/postgresql.conf
- ./Postgres-cds_hub/init/:/docker-entrypoint-initdb.d/
# Web-administration of cds_hub__db (optional)
pgadmin:
image: elestio/pgadmin
restart: unless-stopped
ports:
- "127.0.0.1:8089:80"
environment:
PGADMIN_DEFAULT_PASSWORD: "password"
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_SERVER_JSON_FILE: pgadmin_cds_hub.json
depends_on:
- cds_hub
networks:
- internal
- external
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./pgadmin_cds_hub.json:/pgadmin4/pgadmin_cds_hub.json
# This section is no service, but for building the R-environment
# to execute (manualy) R scripts for r-cds2db and r-db2frontend,
# e.g. StartRetrieval.R
r-env:
build:
context: ./
dockerfile: Dockerfile_R
working_dir: /src
restart: "no"
environment:
TZ: Europe/Berlin
volumes:
- ./outputLocal:/src/outputLocal
- ./outputGlobal:/src/outputGlobal
- ./R-cds2db/cds2db_config.toml:/src/R-cds2db/cds2db_config.toml
- ./R-cds2db/source_PIDs.txt:/src/R-cds2db/source_PIDs.txt
- ./R-dataprocessor/dataprocessor_config.toml:/src/R-dataprocessor/dataprocessor_config.toml
- ./R-db2frontend/db2frontend_config.toml:/src/R-db2frontend/db2frontend_config.toml
- ./cds_hub_db_config.toml:/src/cds_hub_db_config.toml
depends_on:
- cds_hub
- redcap
- redcap_db
networks:
- internal
command: ["/bin/true"]
networks:
external:
driver: bridge
internal:
driver: bridge
secrets:
cds_hub_db_admin.password:
file: ./Postgres-cds_hub/.env_cds_hub_db_admin.password
redcap_db_root.password:
file: ./REDCap-db/.env_redcap_db_root.password
redcap_db.password:
file: ./REDCap-db/.env_redcap_db.password
volumes:
redcap-db-data:
blaze-data-DIC:
blaze-data-IP:
cds_hub_db-data:
pgadmin-data: