Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions compose/keycloak/compose-keycloak-no-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ services:
networks:
- codetogethernet
healthcheck:
test: ["CMD-SHELL", "echo > /dev/tcp/localhost/8080 || exit 1"]
test:
[
"CMD-SHELL",
"bash -lc 'exec 3<>/dev/tcp/127.0.0.1/9000 && printf \"GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3 && head -n1 <&3 | grep -q \" 200 \"'"
]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
retries: 30
start_period: 90s

volumes:
mysql_data:
Expand Down
10 changes: 7 additions & 3 deletions compose/keycloak/compose-keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ services:
networks:
- codetogethernet
healthcheck:
test: ["CMD-SHELL", "echo > /dev/tcp/localhost/8080 || exit 1"]
test:
[
"CMD-SHELL",
"bash -lc 'exec 3<>/dev/tcp/127.0.0.1/9000 && printf \"GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3 && head -n1 <&3 | grep -q \" 200 \"'"
]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
retries: 30
start_period: 90s

volumes:
mysql_data:
Expand Down
Loading