Skip to content

Commit

Permalink
fix: keycloak healthcheck and use latest synapse tag in dev env πŸ§‘β€πŸ’»
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Mar 27, 2024
1 parent fe09bce commit 151a1f0
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
db:
image: postgres:15-alpine
Expand All @@ -18,7 +17,7 @@ services:
retries: 3

keycloak:
image: eimisans/eimis-keycloak:23.0.3-3
image: eimisans/eimis-keycloak:latest
ports:
- "8080:8080"
- "8443:8443"
Expand Down Expand Up @@ -48,22 +47,19 @@ services:
db:
condition: service_healthy

# keycloak-health:
# image: busybox:stable-musl
# command: ["sh", "-c", "while true; do sleep 1; done"]
# healthcheck:
# test:
# [
# "CMD",
# "wget",
# "--spider",
# "--no-check-certificate",
# "https://eimis-synapse-image-keycloak-1:8443/health/started",
# ]
# interval: 15s
# timeout: 30s
# retries: 5
# start_period: 30s
keycloak-health:
image: curlimages/curl:8.5.0
command: ["sh", "-c", "while true; do sleep 1; done"]
healthcheck:
test:
[
"CMD-SHELL",
"curl --head -fsS --insecure --http1.1 https://keycloak:8443/health/ready",
]
interval: 15s
timeout: 30s
retries: 5
start_period: 30s

mailhog:
image: mailhog/mailhog
Expand All @@ -84,8 +80,8 @@ services:
- ./docker-test-config/mx-conf:/mx-conf/
- ./docker-test-config/kc-conf/certificate.pem:/mx-conf/cert/certificate.pem:ro
depends_on:
# keycloak-health:
# condition: service_healthy
keycloak-health:
condition: service_healthy
db:
condition: service_healthy
environment:
Expand Down

0 comments on commit 151a1f0

Please sign in to comment.