Skip to content

Commit

Permalink
fix: db container healthchecks that was earlier broken
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-naxa committed Sep 4, 2024
1 parent 688a6a5 commit e787ec2
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 e787ec2

Please sign in to comment.