Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (169 loc) · 5.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
184 lines (169 loc) · 5.25 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: '3.1'
networks:
idp-priv:
pub:
services:
beaconprod:
restart: on-failure
build:
context: .
container_name: beaconprod
ports:
- "5050:5050"
entrypoint: ['python','-m','beacon']
volumes:
- ./beacon/logs/log_files:/beacon/logs/log_files
- ./beacon/conf:/beacon/conf
- ./beacon/connections:/beacon/connections
- ./beacon/permissions:/beacon/permissions
- ./beacon/models:/beacon/models
- ./beacon/custom_schemas:/beacon/custom_schemas
networks:
- pub
admin-ui:
restart: always
build:
context: ./adminui
container_name: admin-ui
ports:
- "3001:3001"
entrypoint: ['bash','/home/app/web/start.sh']
volumes:
- ./beacon:/home/app/web/beacon
- ./adminui:/home/app/web
networks:
- pub
idp:
#image: quay.io/keycloak/keycloak:12.0.0
image: sleighzy/keycloak
hostname: idp
container_name: idp
environment:
# - KEYCLOAK_FRONTEND_URL=http://idp:8080/auth
# - KEYCLOAK_LOGLEVEL=DEBUG
# - ROOT_LOGLEVEL=DEBUG
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=secret
- DB_USER=admin
- DB_PASSWORD=secret
- DB_VENDOR=postgres
- DB_ADDR=idp-db
- DB_PORT=5432
- DB_DATABASE=keycloak
#- DB_SCHEMA=public
- KEYCLOAK_IMPORT=/tmp/beacon-realm.json -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.profile.feature.token_exchange=enabled -Dkeycloak.profile.feature.admin_fine_grained_authz=enabled
- KEYCLOAK_HOSTNAME=localhost
#- KC_HOSTNAME_URL=https://beacon-network-test2.ega-archive.org
#- KC_HOSTNAME_ADMIN_URL=https://beacon-network-test2.ega-archive.org
#- KEYCLOAK_FRONTEND_URL=https://beacon-network-test2.ega-archive.org/auth/
#- PROXY_ADDRESS_FORWARDING=true
volumes:
- ./beacon/auth/realms/beacon-realm.json:/tmp/beacon-realm.json
ports:
- "8080:8080"
- "9991:8443"
networks:
- idp-priv
- pub
depends_on:
- idp-db
idp-db:
image: postgres
hostname: idp-db
container_name: idp-db
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=secret
networks:
- idp-priv
db:
#image: mongo:5.0.32
#image: mongo:6.0.27
#image: mongo:7.0.31
image: mongo:8.2.7
#command: --wiredTigerCacheSizeGB 4
#command: --wiredTigerCacheSizeGB 4 --sslMode requireSSL --tlsCertificateKeyFile test-server1.pem --tlsCAFile test-ca.pem
hostname: mongo
container_name: mongoprod
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: beacon
volumes:
- ./beacon/connections/mongo/mongo-init/:/docker-entrypoint-initdb.d/:ro
- ./beacon/connections/mongo/data/:/data
- ./beacon/connections/mongo/data/db:/data/db
- ./beacon/connections/mongo/data/configdb:/data/configdb
- ./beacon/connections/mongo/data/caseLevelData:/data/caseLevelData
- ./beacon/connections/mongo/mongod.conf:/etc/mongod.conf:ro
#- ./test-server1.pem:/test-server1.pem
#- ./test-ca.pem:/test-ca.pem
#- ./test-client.pem:/test-client.pem
networks:
- pub
command: ["mongod", "--config", "/etc/mongod.conf"]
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
networks:
- pub
beacon-ri-tools:
image: ghcr.io/ega-archive/beacon2-ri-tools-v2:2.3.3
hostname: beacon-ri-tools
container_name: ri-tools
networks:
- pub
tty: true
volumes:
- ./ri-tools/output_docs:/usr/src/app/output_docs
- ./ri-tools/conf:/usr/src/app/conf
- ./ri-tools/files/vcf/files_to_read:/usr/src/app/files/vcf/files_to_read
- ./ri-tools/csv:/usr/src/app/csv
- ./ri-tools/files/updated_json:/usr/src/app/files/updated_json
- ./ri-tools/pipelines/default/templates:/usr/src/app/pipelines/default/templates
- ./ri-tools/refgen-data:/opt/refgen-data
- ./ri-tools/files/headers:/usr/src/app/files/headers
- ./ri-tools/files/deref_schemas:/usr/src/app/files/deref_schemas
phenopackets-to-BFF:
image: ghcr.io/ega-archive/phenopackets-to-bff:latest
restart: always
hostname: phenopackets-to-BFF
container_name: phenopackets-to-BFF
volumes:
- ./ri-tools/phenopackets-to-BFF/:/usr/src/app/examples
networks:
- pub
templateUI:
image: ghcr.io/ega-archive/beacon-template-ui:egadev
hostname: frontend
container_name: "template-ui"
networks:
- pub
ports:
- '3000:80'
volumes:
- ./template-ui/config:/usr/share/nginx/html/config:ro
postgres:
image: postgres:16
container_name: postgres-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: your_secure_password
POSTGRES_DB: beacon
volumes:
- ./beacon/connections/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d beacon"]
interval: 10s
timeout: 5s
retries: 5
networks:
- pub