feat: add health checks for backend and frontend services in docker-compose.yml

This commit is contained in:
2025-12-30 21:25:25 -05:00
parent dfdce51c6e
commit 57dad564a6
+15
View File
@@ -15,6 +15,12 @@ services:
- sharpbin-net - sharpbin-net
expose: expose:
- "8080" - "8080"
healthcheck:
test: 'wget --no-verbose --spider http://localhost:8080/health || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
restart: unless-stopped restart: unless-stopped
frontend: frontend:
@@ -29,6 +35,15 @@ services:
- "5173:5173" - "5173:5173"
networks: networks:
- sharpbin-net - sharpbin-net
healthcheck:
test: 'wget --no-verbose --spider http://localhost:5173/health || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
depends_on:
backend:
condition: service_healthy
restart: unless-stopped restart: unless-stopped
volumes: volumes: