version: '3.8'

services:
  presenton:
    image: ghcr.io/presenton/presenton:latest
    container_name: presenton
    restart: unless-stopped
    networks:
      - traefik-public
    env_file:
      - .env
    volumes:
      - ./app_data:/app_data
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 2G
        reservations:
          cpus: '1'
          memory: 512M
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik-public"
      - "traefik.http.routers.presenton.rule=Host(`presentation.ai-impress.com`)"
      - "traefik.http.routers.presenton.entrypoints=websecure"
      - "traefik.http.routers.presenton.tls.certresolver=cloudflare"
      - "traefik.http.services.presenton.loadbalancer.server.port=80"

networks:
  traefik-public:
    external: true
