forked from Socayna/dockerized_vre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
167 lines (154 loc) · 4.42 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
160
161
162
163
164
165
166
167
version: "2.4"
services:
my-mongodb:
hostname: my-mongodb
image: mongo:4.4
container_name: my-mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_USERNAME: ${MONGO_INITDB_USERNAME}
MONGO_INITDB_PASSWORD: ${MONGO_INITDB_PASSWORD}
MONGO_PORT: ${MONGO_PORT}
MONGO_SERVER: ${MONGO_SERVER}
MONGO_INITDB_DATABASE: ${MONGO_DB}
ports:
- ${MONGO_PORT}:27017
links:
- keycloak
env_file: .env
volumes:
- ./volumes/mongo_data:/data/db
- ./mongodb/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
networks:
open-vre:
ipv4_address: 172.21.0.10
mongo_seed:
container_name: mongo_seed
image: mongo
links:
- my-mongodb
env_file: .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_USERNAME: ${MONGO_INITDB_USERNAME}
MONGO_INITDB_PASSWORD: ${MONGO_INITDB_PASSWORD}
MONGO_PORT: ${MONGO_PORT}
MONGO_SERVER: ${MONGO_SERVER}
MONGO_INITDB_DATABASE: ${MONGO_DB}
volumes:
- ./mongo-seed:/mongo-seed
- ./volumes/shared_data:/shared_data
- ./front_end/openVRE/install:/install_data
command:
/mongo-seed/import.sh
networks:
- open-vre
depends_on:
- my-mongodb
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
open-vre:
ipv4_address: 172.21.0.13
volumes:
- ./volumes/pg_data:/var/lib/postgresql/data
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:15.0.2
environment:
DB_VENDOR: ${DB_VENDOR}
DB_ADDR: ${DB_ADDR}
DB_DATABASE: ${DB_DATABASE}
DB_USER: ${DB_USER}
DB_SCHEMA: ${DB_SCHEMA}
DB_PASSWORD: ${DB_PASSWORD}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
PROXY_ADDRESS_FORWARDING: "false"
KEYCLOAK_FRONTEND_URL: ${FQDN_HOST_PROTOCOL}://${FQDN_HOST}:${KEYCLOAK_PORT}/auth
volumes:
- ./keycloak/realms:/opt/jboss/keycloak/imports
command:
- '-b 0.0.0.0 -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/jboss/keycloak/imports/realm-export.json -Dkeycloak.migration.strategy=IGNORE_EXISTING'
ports:
- ${KEYCLOAK_PORT}:8080
links:
- postgres
hostname: keycloak
networks:
open-vre:
ipv4_address: 172.21.0.12
depends_on:
- postgres
sgecore:
build:
context: ./sge
#network: host
environment:
- DOCKER_GROUP:${DOCKER_GROUP}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./sge:/sge
- ./sge/configuration:/tmp/configuration
- ./sge/configuration:/etc/gridengine/configuration
- ./volumes/shared_data:/shared_data
container_name: sgecore
hostname: sgecore
stdin_open: true
networks:
- open-vre
#- shared
ports:
- 6444:6444
front_end:
container_name: front_end
hostname: front_end.dockerized_vre_open-vre
extra_hosts:
- ${FQDN_HOST}:172.21.0.1
build:
context: ./front_end/
#network: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./front_end/act_qmaster:/var/lib/gridengine/default/common/act_qmaster
- ./volumes/openVRE/config:/var/www/html/openVRE/config
- ./volumes/openVRE/tools:/var/www/html/openVRE/public/tools
- ./volumes/shared_data:/shared_data
environment:
- DOCKER_GROUP:${DOCKER_GROUP}
links:
- my-mongodb
- keycloak
depends_on:
- sgecore
ports:
- "8089:80"
networks:
#shared:
open-vre:
ipv4_address: 172.21.0.14
networks:
open-vre:
#Use on openStack cloud
#driver_opts:
# com.docker.network.driver.mtu: 1442
ipam:
config:
- subnet: 172.21.0.0/24
#shared:
#external:
#name: shared
volumes:
shared_data:
driver: local
driver_opts:
o: bind
type: none
device: ./volumes/shared_data