Add volume definitions and healthcheck to docker-compose.yml for improved service management

This commit is contained in:
2025-08-13 01:37:39 +01:00
parent 99de77c8f4
commit 5fdfe3e790

View File

@ -10,9 +10,18 @@ services:
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
- scriptshare_data:/usr/share/nginx/html
- scriptshare_logs:/var/log/nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
scriptshare_data:
driver: local
scriptshare_logs:
driver: local