version: "3.8"

services:
  analytics:
    image: simple-analytics
    container_name: analytics
    restart: unless-stopped
    ports:
      - "8082:8000"
    environment:
      - DB_PATH=/data/analytics.db
      - SECRET_KEY=${SECRET_KEY:-analytics2026}
      - PUBLIC_URL=https://10.0.0.21:8443
    volumes:
      - analytics-data:/data

volumes:
  analytics-data:
