Skip to content

Commit

Permalink
relaxed the heartbeat intervals and added start_interval instead
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 21, 2024
1 parent 95e0fea commit 3c2b142
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
12 changes: 7 additions & 5 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ services:
test: wget --quiet --spider http://localhost:7700/health
retries: 5
interval: 10s
start_interval: 1s
start_period: 10s
db:
image: postgis/postgis:17-3.4
Expand All @@ -86,8 +87,7 @@ services:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
retries: 5
interval: 10s
# requires docker v25 to be available for ubuntu
# start_interval: 20s
start_interval: 1s
start_period: 20s
download-data:
image: alpine:latest
Expand Down Expand Up @@ -133,9 +133,10 @@ services:
read_only: true
healthcheck:
test: curl --fail -s http://localhost:8002/status || exit 1
interval: 60s
retries: 2
interval: 30s
start_interval: 1s
start_period: 5s
retries: 2
timeout: 1s
osm2pgsql-init:
image: iboates/osm2pgsql:latest
Expand Down Expand Up @@ -246,5 +247,6 @@ services:
healthcheck:
test: wget --spider http://localhost:3001/health || exit 1
retries: 10
interval: 1s
interval: 10s
start_interval: 1s
start_period: 1s
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ services:
test: service nginx status || exit 1
retries: 2
interval: 10s
start_interval: 1s
start_period: 10s
tileserver:
image: maptiler/tileserver-gl:v5.0.0
Expand Down Expand Up @@ -169,6 +170,7 @@ services:
test: wget --quiet --spider http://localhost:7700/health
retries: 5
interval: 10s
start_interval: 1s
start_period: 10s
db:
image: postgis/postgis:17-3.4
Expand All @@ -190,8 +192,7 @@ services:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
retries: 5
interval: 10s
# requires docker v25 to be available for ubuntu
# start_interval: 20s
start_interval: 1s
start_period: 20s
download-data:
image: alpine:latest
Expand Down Expand Up @@ -234,7 +235,7 @@ services:
environment:
TZ: Europe/Berlin
expose:
- 8002
- "8002"
depends_on:
valhalla-build:
condition: service_completed_successfully
Expand All @@ -246,8 +247,9 @@ services:
healthcheck:
test: curl --fail -s http://localhost:8002/status || exit 1
interval: 60s
retries: 2
start_interval: 1s
start_period: 5s
retries: 2
timeout: 1s
osm2pgsql-init:
image: iboates/osm2pgsql:latest
Expand Down Expand Up @@ -375,8 +377,9 @@ services:
healthcheck:
test: wget --spider http://localhost:3001/health || exit 1
retries: 10
interval: 1s
start_period: 1s
interval: 30s
start_interval: 1s
start_period: 10s
redirect-domain:
image: traefik/whoami:latest
restart: unless-stopped
Expand All @@ -396,6 +399,7 @@ services:
test: ["CMD", "/whoami", "--help"] # I know that this is not usefull. There does not exists a executable in that image that can call /health
retries: 2
interval: 10s
start_interval: 1s
start_period: 10s

volumes:
Expand Down

0 comments on commit 3c2b142

Please sign in to comment.