services:
  creator:
    build:
      context: .
    container_name: creator
    restart: unless-stopped
    environment:
      - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}
      - MINIMAX_API_KEY=${MINIMAX_API_KEY:-}
    networks:
      - web
    volumes:
      - ./storage:/app/storage
      - ./projects:/app/projects
      - ./uni:/app/uni
      - ./.claude-data:/home/app/.claude
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.creatorapp.rule=Host(`creator.marha.de`)"
      - "traefik.http.routers.creatorapp.entrypoints=websecure"
      - "traefik.http.routers.creatorapp.tls.certresolver=letsencrypt"
      - "traefik.http.services.creatorapp.loadbalancer.server.port=8000"

networks:
  web:
    external: true
