# ==============================================
# LLMHosts.com -- External Proxy Override
# ==============================================
# Use this override when an external reverse proxy (Pangolin, Traefik, nginx)
# already owns ports 80/443 on the host.
#
# Usage:
#   docker compose -f docker-compose.prod.yml -f docker-compose.external-proxy.yml up -d
#
# What this does:
#   1. Disables the built-in Traefik (avoids port conflicts)
#   2. Connects llmhosts + frontend to the external proxy's Docker network (traefik-public)
#
# You must configure routing in your external proxy to forward traffic
# to http://llmhosts:4000 (API) and http://llmhosts-frontend:3000 (web).
# See docs/deployment/docker-production.md for examples.

services:
  traefik:
    # Disable the built-in Traefik — the external proxy handles TLS + routing
    profiles:
      - disabled

  llmhosts:
    networks:
      - llmhosts-internal
      - traefik-public

  frontend:
    networks:
      - llmhosts-internal
      - traefik-public

networks:
  traefik-public:
    external: true
