services: weather: build: context: ./app dockerfile: Dockerfile container_name: weather-app restart: unless-stopped ports: - "3005:3005" environment: - PORT=3005 - NODE_ENV=production # Required for push notifications — generate with: npx web-push generate-vapid-keys - VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY:-} - VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY:-} - VAPID_SUBJECT=${VAPID_SUBJECT:-mailto:nate@necloud.us} # Ambient Weather personal station integration - AMBIENT_API_KEY=${AMBIENT_API_KEY:-} - AMBIENT_APP_KEY=${AMBIENT_APP_KEY:-} # Optional: how often to poll NWS alerts (ms). Default: 300000 (5 min) # - ALERT_POLL_INTERVAL_MS=300000 volumes: - ./data:/app/data healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:3005/"] interval: 30s timeout: 5s retries: 3