feat: add healthcheck endpoints, Dockerfiles, and admin middleware configuration

This commit is contained in:
2026-10-21 22:59:35 +02:00
parent f5548ab326
commit 2fdabe1dfd
7 changed files with 50 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ services:
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
admin:
image: git.home.arrondeau.fr/streaper2/afrov2-admin:latest
@@ -51,6 +57,12 @@ services:
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3001/api/health || exit 1"]
interval: 15s
timeout: 5s
retries: 5
start_period: 60s
volumes:
pgdata: