Skip to content

Commit

Permalink
Adding health check verification on database service
Browse files Browse the repository at this point in the history
  • Loading branch information
akizito committed Apr 21, 2024
1 parent 275abf9 commit ec8e7d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ services:
networks:
- nesis
depends_on:
database:
condition: service_healthy
links:
- database
- memcached
- nesis_rag
Expand Down Expand Up @@ -101,6 +104,11 @@ services:
volumes:
- database_data:/var/lib/postgresql/data
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- nesis
volumes:
Expand Down

0 comments on commit ec8e7d1

Please sign in to comment.