version: "3.8"

services:
  trafialert:
    build: .
    container_name: trafialert-valla
    ports:
      - "3000:3000"
    environment:
      - PORT=3000
      - SESSION_SECRET=${SESSION_SECRET:-cambia-este-secreto}
      - COOKIE_SECURE=false
    volumes:
      - trafialert-data:/app/server/data
    restart: unless-stopped

volumes:
  trafialert-data:
