Fix deployment issues: remove volume mounts, run nginx as root, add fallback vite build strategy
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user