mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: add health checks for backend and frontend services in docker-compose.yml
This commit is contained in:
@@ -15,6 +15,12 @@ services:
|
||||
- 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:
|
||||
@@ -29,6 +35,15 @@ 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
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user