Skip to content
Snippets Groups Projects
Commit ebb072db authored by Mehrsary's avatar Mehrsary
Browse files

chore: Update docker-compose files with healthchecks for pht-keycloak service

parent f22e6274
No related tags found
No related merge requests found
......@@ -99,11 +99,15 @@ services:
networks:
- pht-net
- metadata
depends_on:
- mongo
- dind
- vault
- pht-keycloak
depends_on:
mongo:
condition: service_started
dind:
condition: service_started
vault:
condition: service_started
pht-keycloak:
condition: service_healthy
restart: unless-stopped
vault:
......@@ -186,6 +190,11 @@ services:
aliases:
- pht-keycloak
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/8080;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
interval: 10s
timeout: 5s
retries: 3
networks:
pht-net:
......
......@@ -76,10 +76,14 @@ services:
- pht-net
- metadata
depends_on:
- mongo
- dind
- vault
- pht-keycloak
mongo:
condition: service_started
dind:
condition: service_started
vault:
condition: service_started
pht-keycloak:
condition: service_healthy
restart: unless-stopped
vault:
......@@ -173,6 +177,11 @@ services:
aliases:
- pht-keycloak
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/8080;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
interval: 10s
timeout: 5s
retries: 3
networks:
pht-net:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment