forked from HBPMedical/mip-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (125 loc) · 3.61 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
version: '3.0'
services:
db:
image: postgres:11.3-alpine
ports:
- "5432:5432"
hostname: db
environment:
POSTGRES_PASSWORD: test
wait_dbs:
image: "waisbrot/wait"
restart: "no"
environment:
TARGETS: "db:5432"
TIMEOUT: 60
depends_on:
- db
create_dbs:
image: "hbpmip/create-databases:1.1.0"
restart: "no"
environment:
DB_HOST: db
DB_PORT: 5432
DB_ADMIN_USER: postgres
DB_ADMIN_PASSWORD: test
DB4: portal
USER4: portal
PASSWORD4: portalpwd
depends_on:
- db
portalbackend:
image: hbpmip/portal-backend:5.1.0
restart: "no"
ports:
- "8080:8080"
- "8089:8089"
environment:
PORTAL_DB_URL: jdbc:postgresql://db:5432/portal
PORTAL_DB_SERVER: db:5432
PORTAL_DB_USER: portal
PORTAL_DB_PASSWORD: portalpwd
CONTEXT_PATH: /services
AUTHENTICATION: 1
CLIENT_ID: medical-informatics-platform
CLIENT_SECRET: dae83a6b-c769-4186-8383-f0984c6edf05
FRONTEND_LOGIN_URL: http://88.197.53.106/services/login/hbp
FRONTEND_AFTER_LOGIN_URL: http://88.197.53.106/
FRONTEND_AFTER_LOGOUT_URL: http://88.197.53.106/services/login/hbp
EXAREME_URL: http://88.197.53.106:9090
GALAXY_CONTEXT: nativeGalaxy/workflows/list
GALAXY_USERNAME: admin
GALAXY_PASSWORD: password
WORKFLOW_URL: http://88.197.53.106:8091/Galaxy_Middleware_API-1.0.0-SNAPSHOT/api
JWT_SECRET: "secret"
LOGGING_LEVEL_WEB: INFO
LOGGING_LEVEL_HIBERNATE: INFO
SESSION_TIMEOUT: 2592000
RELEASE_STAGE: "testing"
DATACENTER_LOCATION: "$HOST"
CONTAINER_ORCHESTRATION: "docker-compose"
# docker keycloak certificate
AUTH_URI: "https://keycloakUrl:8095/auth/realms/MIP/protocol/openid-connect/auth"
USER_INFO_URI: "https://keycloakUrl:8095/auth/realms/MIP/protocol/openid-connect/userinfo"
TOKEN_URI: "https://keycloakUrl:8095/auth/realms/MIP/protocol/openid-connect/token"
LOGOUT_URI: "https://keycloakUrl:8095/auth/realms/MIP/protocol/openid-connect/logout"
KEYCLOAK_URL: "keycloakUrl"
depends_on:
- db
volumes:
- ./data:/opt/portal/api
- ./logs:/opt/portal/logs
wait_portal_backend:
image: "waisbrot/wait"
restart: "no"
environment:
TARGETS: "portalbackend:8080"
TIMEOUT: 60
depends_on:
- portalbackend
frontend:
image: hbpmip/portal-frontend:5.1.3
depends_on:
- portalbackend
ports:
- "80:80"
environment:
WORKER_PROCESSES: 1
ERROR_LOG_LEVEL: warn
PORTAL_VIRTUAL_HOST: frontend
PORTAL_BACKEND_SERVER: portalbackend:8080
PORTAL_BACKEND_CONTEXT: services
MODE: local
INSTANCE_NAME: "MIP 5.0.0"
VERSION: "5.0.0"
TRACKER_ID: UA-80660232-5
GALAXY_URL: "http://88.197.53.106:8090/nativeGalaxy"
postgres:
image: postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: jboss/keycloak
volumes:
- ./certs:/etc/x509/https
- ./realms/mip.json:/tmp/mip.json
- ./tmp:/tmp
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
KEYCLOAK_IMPORT: /tmp/mip.json
ports:
- "8095:8095"
- "8443:8443"
depends_on:
- postgres