Skip to content

Commit

Permalink
bring back SP + disable all not needed services
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Sep 27, 2024
1 parent 2efff63 commit 7c9f0cf
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 26 deletions.
3 changes: 2 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
- "traefik.http.routers.static.rule=Host(`georchestra-127-0-1-1.traefik.me`)"
- "traefik.http.routers.static.priority=1"

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

# uncomment for oauth 2.0
# uncomment for oauth 2.0 and security-proxy
# cas:
# labels:
# - "traefik.enable=true"
Expand Down
77 changes: 52 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ services:

gateway:
image: georchestra/gateway:latest
scale: 1 # set to 0 if using security-proxy
depends_on:
- database
volumes:
Expand All @@ -94,28 +95,28 @@ services:
- .envs-hosts
- .envs-database-georchestra

# uncomment for oauth 2.0
# cas:
# image: georchestra/cas:latest
# healthcheck:
# test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/cas/login >/dev/null || exit 1" ]
# interval: 30s
# timeout: 10s
# retries: 10
# depends_on:
# ldap:
# condition: service_healthy
# volumes:
# - georchestra_datadir:/etc/georchestra
# environment:
# - JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
# - XMS=256M
# - XMX=1G
# env_file:
# - .envs-common
# - .envs-ldap
# - .envs-database-georchestra
# restart: always
cas:
image: georchestra/cas:latest
scale: 0 # set to 1 if need for oauth 2.0 and security-proxy
healthcheck:
test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/cas/login >/dev/null || exit 1" ]
interval: 30s
timeout: 10s
retries: 10
depends_on:
ldap:
condition: service_healthy
volumes:
- georchestra_datadir:/etc/georchestra
environment:
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
- XMS=256M
- XMX=1G
env_file:
- .envs-common
- .envs-ldap
- .envs-database-georchestra
restart: always

header:
image: georchestra/header:latest
Expand Down Expand Up @@ -241,6 +242,7 @@ services:

analytics:
image: georchestra/analytics:latest
scale: 0 # set to 1 if security proxy is activated
healthcheck:
test: ["CMD-SHELL", "curl -s -f http://localhost:8080/analytics/ >/dev/null || exit 1"]
interval: 30s
Expand Down Expand Up @@ -398,8 +400,9 @@ services:

rabbitmq:
image: docker.io/bitnami/rabbitmq:3.12
scale: 0 # set to 1 if need rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping && rabbitmq-diagnostics -q check_local_alarms
test: rabbitmq-diagnostics -q ping
interval: 60s
timeout: 30s
retries: 3
Expand All @@ -410,5 +413,29 @@ services:
volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
restart: always



proxy:
image: georchestra/security-proxy:latest
scale: 0 #set to 1 if need security-proxy but set 0 gateway service
healthcheck:
test: ["CMD-SHELL", "curl -s -f http://localhost:8080/_static/bootstrap_3.0.0/css/bootstrap-theme.min.css >/dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 10
depends_on:
ldap:
condition: service_healthy
database:
condition: service_healthy
volumes:
- georchestra_datadir:/etc/georchestra
environment:
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
- XMS=256M
- XMX=1G
env_file:
- .envs-common
- .envs-ldap
- .envs-hosts
- .envs-database-georchestra
restart: always

0 comments on commit 7c9f0cf

Please sign in to comment.