version: "3.8"

services:
  app:
    build: .
    ports:
      - "8000:8000"
    environment:
      - DATABASE_URL=sqlite+aiosqlite:///./data/statuspage.db
      - SECRET_KEY=${SECRET_KEY:-change-me-to-a-random-string}
      - ADMIN_API_KEY=${ADMIN_API_KEY:-change-me-to-a-secure-api-key}
      - SITE_NAME=${SITE_NAME:-My SaaS Status}
      - SITE_URL=${SITE_URL:-http://localhost:8000}
      - SMTP_HOST=${SMTP_HOST:-}
      - SMTP_PORT=${SMTP_PORT:-587}
      - SMTP_USER=${SMTP_USER:-}
      - SMTP_PASS=${SMTP_PASS:-}
      - SMTP_FROM=${SMTP_FROM:-noreply@example.com}
    volumes:
      - statuspage-data:/app/data

volumes:
  statuspage-data: