Skip to content

Commit

Permalink
Add healthceck to postgres service
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Apr 16, 2024
1 parent f2d5e70 commit fde6782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ services:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

memcached:
image: memcached:latest
Expand Down

0 comments on commit fde6782

Please sign in to comment.