Astro 5 SSR + ioredis cache Valkey, déployable sur shared-net. - Vigilance temps réel via Opendatasoft (no-auth, LOv2) - Carte SVG des 96 départements (gregoiredavid/france-geojson) - Climato T° 30j par dept (CSV.GZ Météo France, cache 24h) - Conseils officiels par phénomène (7 types Vigilance) - /api/health (UptimeRobot) + /api/vigilance (JSON public CORS *) - Dockerfile multi-stage, CI Forgejo deploy.yml (pattern Reteno) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
30 lines
710 B
YAML
30 lines
710 B
YAML
# Compose de PROD côté VPS — déployé dans /opt/projects/info-canicule/.
|
|
# Le service rejoint le réseau shared-net pour atteindre `valkey:6379`.
|
|
# En dev local, utiliser `pnpm dev` directement (Valkey local optionnel).
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: info-canicule:latest
|
|
container_name: info-canicule-app
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=4321
|
|
- HOST=0.0.0.0
|
|
networks:
|
|
- shared-net
|
|
mem_limit: 256m
|
|
cpus: 0.5
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
shared-net:
|
|
external: true
|