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

This commit is contained in:
2025-12-30 22:00:20 -05:00
parent c4f606ecf2
commit 08c4be4f7e
3 changed files with 15 additions and 2 deletions
+12 -2
View File
@@ -14,8 +14,12 @@ services:
- ./SharpbinV3.Server/appsettings.json:/app/appsettings.json
networks:
- sharpbin-net
expose:
- "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
frontend:
@@ -30,6 +34,12 @@ services:
- "5173:5173"
networks:
- sharpbin-net
healthcheck:
test: 'wget --no-verbose --spider http://localhost:5173/health || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
restart: unless-stopped
volumes: