Skip to content

Commit

Permalink
Merge pull request #6510 from hotosm/fix-docker-healthchecks
Browse files Browse the repository at this point in the history
fix: db container healthchecks that was earlier broken
  • Loading branch information
dakotabenjamin authored Sep 6, 2024
2 parents 47859b2 + e787ec2 commit e26f3c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ services:
- tasking-manager.env
restart: unless-stopped
healthcheck:
test: pg_isready -U ${POSTGRES_USER:-tm} -d ${POSTGRES_DB:-tasking-manager}
start_period: 35s
test: psql -h 0.0.0.0 -U ${POSTGRES_USER:-tm} -d ${POSTGRES_DB:-tasking-manager} -c 'SELECT 1;'
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
Expand All @@ -45,7 +45,6 @@ services:
test: curl --fail http://localhost:5000 || exit 1
interval: 10s
retries: 5
start_period: 10s
timeout: 3s
deploy:
replicas: ${API_REPLICAS:-1}
Expand Down

0 comments on commit e26f3c7

Please sign in to comment.