version: '3.8' services: scriptshare: build: context: . dockerfile: Dockerfile args: - VITE_APP_NAME=ScriptShare - VITE_APP_URL=http://localhost:3000 - VITE_ANALYTICS_ENABLED=false ports: - "3000:80" environment: - NODE_ENV=production restart: unless-stopped # 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 timeout: 10s retries: 3 start_period: 40s labels: - "traefik.enable=true" - "traefik.http.routers.scriptshare.rule=Host(`scriptshare.localhost`)" - "traefik.http.services.scriptshare.loadbalancer.server.port=80" # Commented out volumes to avoid permission issues # volumes: # scriptshare_logs: # driver: local