Skip to content

Commit

Permalink
Revert "relaxed the heartbeat intervals and added start_interval in…
Browse files Browse the repository at this point in the history
…stead"

This reverts commit 8686b0e10239eadbc46d187efd22aa929513da51.
  • Loading branch information
CommanderStorm committed Oct 21, 2024
1 parent dfc6d46 commit 60ba6c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
12 changes: 5 additions & 7 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ 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 @@ -87,7 +86,8 @@ services:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
retries: 5
interval: 10s
start_interval: 1s
# requires docker v25 to be available for ubuntu
# start_interval: 20s
start_period: 20s
download-data:
image: alpine:latest
Expand Down Expand Up @@ -133,10 +133,9 @@ services:
read_only: true
healthcheck:
test: curl --fail -s http://localhost:8002/status || exit 1
interval: 30s
start_interval: 1s
start_period: 5s
interval: 60s
retries: 2
start_period: 5s
timeout: 1s
osm2pgsql-init:
image: iboates/osm2pgsql:latest
Expand Down Expand Up @@ -247,6 +246,5 @@ services:
healthcheck:
test: wget --spider http://localhost:3001/health || exit 1
retries: 10
interval: 10s
start_interval: 1s
interval: 1s
start_period: 1s
16 changes: 6 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ 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 @@ -170,7 +169,6 @@ 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 @@ -192,7 +190,8 @@ services:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
retries: 5
interval: 10s
start_interval: 1s
# requires docker v25 to be available for ubuntu
# start_interval: 20s
start_period: 20s
download-data:
image: alpine:latest
Expand Down Expand Up @@ -235,7 +234,7 @@ services:
environment:
TZ: Europe/Berlin
expose:
- "8002"
- 8002
depends_on:
valhalla-build:
condition: service_completed_successfully
Expand All @@ -247,9 +246,8 @@ services:
healthcheck:
test: curl --fail -s http://localhost:8002/status || exit 1
interval: 60s
start_interval: 1s
start_period: 5s
retries: 2
start_period: 5s
timeout: 1s
osm2pgsql-init:
image: iboates/osm2pgsql:latest
Expand Down Expand Up @@ -377,9 +375,8 @@ services:
healthcheck:
test: wget --spider http://localhost:3001/health || exit 1
retries: 10
interval: 30s
start_interval: 1s
start_period: 10s
interval: 1s
start_period: 1s
redirect-domain:
image: traefik/whoami:latest
restart: unless-stopped
Expand All @@ -399,7 +396,6 @@ 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 60ba6c1

Please sign in to comment.