-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
97 lines (91 loc) · 2.64 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
version: '3.1'
networks:
idp-priv:
pub:
services:
beaconprod:
build:
context: .
container_name: beaconprod
ports:
- "5050:5050"
entrypoint: ['python','-m','beacon']
volumes:
- ./beacon/logs/logs.log:/beacon/logs/logs.log
- ./beacon/conf/conf.py:/beacon/conf/conf.py
- ./beacon/permissions:/beacon/permissions
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
command: --wiredTigerCacheSizeGB 4
hostname: mongo
container_name: mongoprod
ports:
- 27017:27017
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
networks:
- pub
#command: --verbose
beacon-ri-tools:
image: ghcr.io/ega-archive/beacon2-ri-tools-v2:latest
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