Add healthcheck to containers (#2329) NOCHANGELOG

This commit is contained in:
petitminion 2024-07-31 07:58:11 +00:00
parent 76eb908d77
commit 7c0ac160c5
1 changed files with 10 additions and 2 deletions

12
dev.yml
View File

@ -1,5 +1,3 @@
version: "3"
services:
front:
build:
@ -22,6 +20,11 @@ services:
command: "yarn dev --host"
postgres:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env.dev
- .env
@ -35,6 +38,11 @@ services:
- internal
redis:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env.dev
- .env