Skip to content

Commit

Permalink
add: healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 8, 2024
1 parent fef8f2c commit a496003
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
labels:
service: "centralized-relay"
healthcheck:
test: ["CMD", "test", "-S", "${SOCKET_DIR:-/var/run/relayer}/relay.sock"]
interval: 30s
timeout: 10s
retries: 3
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
Expand All @@ -16,7 +21,7 @@ services:
networks:
relayer:
dashboard:
image: iconcommunity/relayer-admin-dashboard:${NGINX_IMAGE_VERSION:-latest}
image: iconcommunity/relayer-admin-dashboard:${DASHBOARD_IMAGE_VERSION:-latest}
restart: ${RESTART_POLICY:-unless-stopped}
ports:
- "${HTTP_PORT:-80}:80"
Expand All @@ -30,6 +35,15 @@ services:
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
- /proc:/host/proc:ro
- /sys:/host/sys:ro
healthcheck:
test:
- "CMD"
- "curl"
- "-f"
- "http://dashboard:${DASHBOARD_PORT:-3000}/api/health"
interval: 30s
timeout: 10s
retries: 3
labels:
service: "relayer-admin-dashboard"
environment:
Expand Down

0 comments on commit a496003

Please sign in to comment.