Skip to content

Commit

Permalink
fix: keycloak container timeout limit
Browse files Browse the repository at this point in the history
  • Loading branch information
khalsz committed Feb 17, 2025
1 parent c260a17 commit 7c7a4ee
Show file tree
Hide file tree
Showing 9 changed files with 3,953 additions and 1,168 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
up \
--build \
-d
- name: set realm directory permission
run: sudo chown -R 1000:1000 dev/docker/realm

- name: Set up environment
run: |
Expand Down
10 changes: 5 additions & 5 deletions dev/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ services:
ports:
- "8080:8080"
volumes:
- ./realm-data:/opt/keycloak/data
command:
- start-dev
- ./realm:/opt/keycloak/data
command: -v start-dev --import-realm
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/keycloak/8080 && echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: keycloak\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q '200 OK'"]
test: ["CMD-SHELL", "sleep 10 && exec 3<>/dev/tcp/keycloak/8080 && echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: keycloak\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q '200 OK'"]
interval: 10s
timeout: 10s
timeout: 30s
retries: 3
start_period: 50s
networks:
- dbnetwork

Expand Down
6 changes: 0 additions & 6 deletions dev/docker/realm-data/h2/keycloakdb.lock.db

This file was deleted.

Binary file removed dev/docker/realm-data/h2/keycloakdb.mv.db
Binary file not shown.
1,157 changes: 0 additions & 1,157 deletions dev/docker/realm-data/h2/keycloakdb.trace.db

This file was deleted.

Loading

0 comments on commit 7c7a4ee

Please sign in to comment.