-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
139 lines (130 loc) · 3.7 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
version: '3.7'
services:
keycloak_db:
image: postgres:10
restart: always
volumes:
- keycloak_db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=keycloak
- POSTGRES_DB=keycloak_db
keycloak:
image: quay.io/keycloak/keycloak:21.0.1
restart: always
ports:
- '8443:8443'
- '8082:8080'
command: start-dev --import-realm
volumes:
- ./src/backend/keycloak/imports:/opt/keycloak/data/import
- ./src/backend/keycloak/keystore:/opt/conf
# TODO: Fix this warning, (main) Datasource <default> enables XA but transaction recovery is not enabled. Please enable transaction recovery by setting quarkus.transaction-manager.enable-recovery=true, otherwise data may be lost if the application is terminated abruptly
environment:
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://keycloak_db/keycloak_db?user=keycloak&password=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=keycloak
- KC_HOSTNAME=localhost
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
# - KC_HTTPS_KEY_STORE_FILE=/opt/conf/server.keystore
# - KC_HTTPS_KEY_STORE_PASSWORD=password
- KC_TRANSACTION_XA_ENABLED=true
- KC_HEALTH_ENABLED=true
- KC_METRICS_ENABLED=true
depends_on:
- keycloak_db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8082/realms/phyloviz-web-platform"]
mongodb:
image: mongo:6.0.6
environment:
MONGO_APP_DATABASE: phyloviz-web-platform
MONGO_REPLICA_HOST: 172.17.0.1
MONGO_REPLICA_PORT: 27018
entrypoint: >
/bin/bash -c '
echo "rs.initiate()" > /docker-entrypoint-initdb.d/1-init-replicaset.js &&
/usr/local/bin/docker-entrypoint.sh mongod --replSet rs0 --bind_ip_all --noauth --setParameter "transactionLifetimeLimitSeconds=2629743"'
expose:
- 27017
volumes:
- ./src/backend/mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
- mongodb-data:/data/db
ports:
- "28017:27017"
restart: always
tool_registry:
image: registry:2.8.2
restart: always
ports:
- '5000:5000'
volumes:
- tool-registry-data:/var/lib/tool_registry
- ./src/backend/registry/config/config.yml:/etc/docker/tool_registry/config.yml
tool_registry_ui:
image: joxit/docker-registry-ui:2.4.1
ports:
- '8084:80'
environment:
- REGISTRY_TITLE=Tool Images Private Docker Registry
- REGISTRY_URL=http://localhost:5000
- SINGLE_REGISTRY=true
depends_on:
- tool_registry
administration:
build:
context: ./src/backend/microservices/administration
dockerfile: Dockerfile
ports:
- '8088:8088'
network_mode: host
depends_on:
- mongodb
compute:
build:
context: ./src/backend/microservices/compute
dockerfile: Dockerfile
ports:
- '8086:8086'
network_mode: host
depends_on:
- mongodb
file-transfer:
build:
context: ./src/backend/microservices/file-transfer
dockerfile: Dockerfile
ports:
- '8089:8089'
network_mode: host
depends_on:
- mongodb
gateway:
build:
context: ./src/backend/microservices/gateway
dockerfile: Dockerfile
ports:
- '8083:8083'
network_mode: host
depends_on:
- mongodb
- keycloak
visualization:
build:
context: ./src/backend/microservices/visualization
dockerfile: Dockerfile
ports:
- '8085:8085'
network_mode: host
depends_on:
- mongodb
volumes:
keycloak_db_data:
driver: local
cache:
driver: local
mongodb-data:
driver: local
tool-registry-data:
driver: local