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 Jul 19, 2024
1 parent 05877fb commit 0025d5a
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 @@ -19,8 +19,8 @@ services:
- tasking-manager.env
restart: unless-stopped
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
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 @@ -43,7 +43,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 0025d5a

Please sign in to comment.