Skip to content

Commit dc6cf93

Browse files
committed
bring back SP + disable all not needed services
1 parent 2efff63 commit dc6cf93

File tree

2 files changed

+56
-28
lines changed

2 files changed

+56
-28
lines changed

docker-compose.override.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ services:
5656
- "traefik.http.routers.static.rule=Host(`georchestra-127-0-1-1.traefik.me`)"
5757
- "traefik.http.routers.static.priority=1"
5858

59+
# modify from gateway to proxy if security-proxy is enabled
5960
gateway:
6061
labels:
6162
- "traefik.enable=true"
@@ -115,7 +116,7 @@ services:
115116
- "traefik.http.middlewares.add-trailing-slash.redirectregex.replacement=https://$${1}/$${2}/$${3}"
116117
- "traefik.http.middlewares.add-trailing-slash.redirectregex.permanent=false"
117118

118-
# uncomment for oauth 2.0
119+
# uncomment for oauth 2.0 and security-proxy
119120
# cas:
120121
# labels:
121122
# - "traefik.enable=true"

docker-compose.yml

+54-27
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ services:
8282

8383
gateway:
8484
image: georchestra/gateway:latest
85+
scale: 1 # set to 0 if using security-proxy
8586
depends_on:
8687
- database
8788
volumes:
@@ -94,28 +95,28 @@ services:
9495
- .envs-hosts
9596
- .envs-database-georchestra
9697

97-
# uncomment for oauth 2.0
98-
# cas:
99-
# image: georchestra/cas:latest
100-
# healthcheck:
101-
# test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/cas/login >/dev/null || exit 1" ]
102-
# interval: 30s
103-
# timeout: 10s
104-
# retries: 10
105-
# depends_on:
106-
# ldap:
107-
# condition: service_healthy
108-
# volumes:
109-
# - georchestra_datadir:/etc/georchestra
110-
# environment:
111-
# - JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
112-
# - XMS=256M
113-
# - XMX=1G
114-
# env_file:
115-
# - .envs-common
116-
# - .envs-ldap
117-
# - .envs-database-georchestra
118-
# restart: always
98+
cas:
99+
image: georchestra/cas:latest
100+
scale: 0 # set to 1 if need for oauth 2.0 and security-proxy
101+
healthcheck:
102+
test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/cas/login >/dev/null || exit 1" ]
103+
interval: 30s
104+
timeout: 10s
105+
retries: 10
106+
depends_on:
107+
ldap:
108+
condition: service_healthy
109+
volumes:
110+
- georchestra_datadir:/etc/georchestra
111+
environment:
112+
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
113+
- XMS=256M
114+
- XMX=1G
115+
env_file:
116+
- .envs-common
117+
- .envs-ldap
118+
- .envs-database-georchestra
119+
restart: always
119120

120121
header:
121122
image: georchestra/header:latest
@@ -241,6 +242,7 @@ services:
241242

242243
analytics:
243244
image: georchestra/analytics:latest
245+
scale: 0 # set to 1 if security proxy is activated
244246
healthcheck:
245247
test: ["CMD-SHELL", "curl -s -f http://localhost:8080/analytics/ >/dev/null || exit 1"]
246248
interval: 30s
@@ -398,17 +400,42 @@ services:
398400

399401
rabbitmq:
400402
image: docker.io/bitnami/rabbitmq:3.12
403+
scale: 0 # set to 1 if need rabbitmq
401404
healthcheck:
402-
test: rabbitmq-diagnostics -q ping && rabbitmq-diagnostics -q check_local_alarms
403-
interval: 60s
405+
test: rabbitmq-diagnostics -q ping
406+
interval: 15s
404407
timeout: 30s
405-
retries: 3
408+
retries: 6
406409
env_file:
407410
- .envs-rabbitmq
408411
environment:
409412
- RABBITMQ_LOGS=-
410413
volumes:
411414
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
412415
restart: always
413-
414-
416+
417+
proxy:
418+
image: georchestra/security-proxy:latest
419+
scale: 0 #set to 1 if need security-proxy but set 0 gateway service
420+
healthcheck:
421+
test: ["CMD-SHELL", "curl -s -f http://localhost:8080/_static/bootstrap_3.0.0/css/bootstrap-theme.min.css >/dev/null || exit 1"]
422+
interval: 30s
423+
timeout: 10s
424+
retries: 10
425+
depends_on:
426+
ldap:
427+
condition: service_healthy
428+
database:
429+
condition: service_healthy
430+
volumes:
431+
- georchestra_datadir:/etc/georchestra
432+
environment:
433+
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
434+
- XMS=256M
435+
- XMX=1G
436+
env_file:
437+
- .envs-common
438+
- .envs-ldap
439+
- .envs-hosts
440+
- .envs-database-georchestra
441+
restart: always

0 commit comments

Comments
 (0)