-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·232 lines (219 loc) · 6.93 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
networks:
bibbox-default-network:
external: true
services:
bibbox-sys-commander-apacheproxy:
container_name: bibbox-sys-commander-apacheproxy
restart: unless-stopped
networks:
- bibbox-default-network
image: bibbox/bibbox-sys-commander-apacheproxy:latest
volumes:
- /opt/bibbox/proxy/sites:/usr/local/apache2/conf/sites
- /opt/bibbox/sys-bibbox/frontend/dist/sys-bibbox-client:/var/www/html/sys-bibbox-client
ports:
- "80:80"
- "443:443"
bibbox-sys-commander-backend: # BACKEND
container_name: bibbox-sys-commander-backend
restart: unless-stopped
networks:
- bibbox-default-network
image: bibbox/bibbox-sys-commander-backend:latest
ports:
- "5010:5000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/bibbox:/opt/bibbox
- ./backend:/usr/src/bibbox-sys-commander/backend
- ./data/db_init_done:/db_init_done
env_file:
- .env
depends_on:
bibbox-sys-commander-redis:
condition: service_started
bibbox-sys-commander-celery:
condition: service_healthy
bibbox-sys-commander-postgres:
condition: service_healthy
bibbox-sys-commander-celery: # CELERY -alias celery
container_name: bibbox-sys-commander-celery
restart: unless-stopped
networks:
bibbox-default-network:
aliases:
- celery
image: bibbox/bibbox-sys-commander-backend:latest
command: bash -c 'celery -A celery_worker.app_celerey worker -l INFO'
volumes:
- ./data/celery:/queue
- /var/run/docker.sock:/var/run/docker.sock
- /opt/bibbox:/opt/bibbox
- ./backend:/usr/src/bibbox-sys-commander/backend
env_file:
- .env
depends_on:
bibbox-sys-commander-keycloak:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "celery inspect ping"]
interval: 1s
timeout: 3s
retries: 60
bibbox-sys-commander-celery-monitor: # CELERY MONITOR
container_name: bibbox-sys-commander-celery-monitor
image: bibbox/bibbox-sys-commander-backend:latest
networks:
- bibbox-default-network
restart: unless-stopped
ports:
- "5011:5555"
command: celery -A celery_worker.app_celerey flower --port=5555
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
depends_on:
bibbox-sys-commander-redis:
condition: service_started
bibbox-sys-commander-celery:
condition: service_healthy
volumes:
- ./data/celery:/queue
- ./backend:/usr/src/bibbox-sys-commander/backend
- /opt/bibbox:/opt/bibbox
bibbox-sys-commander-postgres: # POSTGRES DB -alias postgres
container_name: bibbox-sys-commander-postgres
restart: unless-stopped
networks:
bibbox-default-network:
aliases:
- postgres
image: bibbox/bibbox-sys-commander-postgres:latest
ports:
- "5432:5432"
volumes:
- ./data/postgresql/data:/var/lib/postgresql/data
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${DB_NAME}'"]
interval: 1s
timeout: 3s
retries: 60
bibbox-sys-commander-redis: # REDIS -alias redis
container_name: bibbox-sys-commander-redis
image: redis
networks:
bibbox-default-network:
aliases:
- redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./data/redis/data:/data
env_file:
- .env
bibbox-sys-commander-adminer: #ADMINER
container_name: bibbox-sys-commander-adminer
networks:
- bibbox-default-network
image: adminer
restart: unless-stopped
links:
- bibbox-sys-commander-postgres:postgres
# - bibbox-sys-commander-keycloak-postgres:postgres
ports:
- "5012:8080"
environment:
ADMINER_DEFAULT_DB_DRIVER: pgsql
ADMINER_DEFAULT_DB_HOST: postgres
ADMINER_DEFAULT_DB_NAME: bibbox
bibbox-sys-commander-cadvisor: # CADVISOR
container_name: bibbox-sys-commander-cadvisor
image: gcr.io/cadvisor/cadvisor
networks:
- bibbox-default-network
restart: unless-stopped
ports:
- "5013:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /dev/disk/:/dev/disk:ro
bibbox-sys-commander-keycloak: # KEYCLOAK
container_name: bibbox-sys-commander-keycloak
image: bitnami/keycloak
restart: unless-stopped
ports:
- "5014:8080"
networks:
- bibbox-default-network
environment:
- KEYCLOAK_CREATE_ADMIN_USER=true
- DB_ADDR=bibbox-sys-commander-postgres
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_PASSWORD=keycloak
- DB_SCHEMA=public
# for changing the themes add --spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme-cache-templates=false to the extra args command below.
- KEYCLOAK_EXTRA_ARGS=--import-realm --health-enabled=true
volumes:
- ./keycloak/realms/realm-export.json:/opt/bitnami/keycloak/data/import/realm-export.json
- ./keycloak/themes:/opt/bitnami/keycloak/themes
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "curl --head -fsS http://localhost:8080/health/ready"]
interval: 1s
timeout: 3s
retries: 60
depends_on:
bibbox-sys-commander-postgres:
condition: service_healthy
bibbox-sys-commander-master-fdp: # FDP
image: fairdata/fairdatapoint:1.13.2
container_name: bibbox-sys-commander-master-fdp
restart: unless-stopped
networks:
- bibbox-default-network
ports:
- "8080:80"
volumes:
- ./fdp-configs/application.yml:/fdp/application.yml:ro
env_file:
- fdp-configs/fdp.env.template
bibbox-sys-commander-master-fdp-client: # FDP CLIENT - alias fdp
image: fairdata/fairdatapoint-index-client:1.13
container_name: bibbox-sys-commander-master-fdp-client
restart: unless-stopped
ports:
- "8088:80"
environment:
- FDP_HOST=fdp
networks:
bibbox-default-network:
aliases:
- fdp
bibbox-sys-commander-master-fdp-mongo: # MONGO DB -alias mongo
image: mongo:4.0.12
container_name: bibbox-sys-commander-master-fdp-mongo
restart: unless-stopped
volumes:
- ./data/mongo/data:/data/db
networks:
bibbox-default-network:
aliases:
- mongo
bibbox-sys-commander-master-fdp-blazegraph: # BLAZEGRAPH - alias blazegraph
image: metaphacts/blazegraph-basic:2.2.0-20160908.003514-6
container_name: bibbox-sys-commander-master-fdp-blazegraph
restart: unless-stopped
volumes:
- ./data/blazegraph:/blazegraph-data
networks:
bibbox-default-network:
aliases:
- blazegraph