Fix deployment issues: remove volume mounts, run nginx as root, add fallback vite build strategy

This commit is contained in:
2025-08-15 23:19:10 +01:00
parent 29e99556ab
commit cc8fc50a2b
2 changed files with 17 additions and 13 deletions

View File

@ -14,8 +14,9 @@ services:
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
- scriptshare_logs:/var/log/nginx
# Commented out volumes to avoid permission issues in containerized deployment
# volumes:
# - scriptshare_logs:/var/log/nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
@ -27,6 +28,7 @@ services:
- "traefik.http.routers.scriptshare.rule=Host(`scriptshare.localhost`)"
- "traefik.http.services.scriptshare.loadbalancer.server.port=80"
volumes:
scriptshare_logs:
driver: local
# Commented out volumes to avoid permission issues
# volumes:
# scriptshare_logs:
# driver: local