Networking Configuration
This guide explains Agenta's network topology, how containers communicate with each other, and the environment variables that control networking behavior and connectivity.
Network Topology
Agenta uses a Docker-based network architecture with a dedicated bridge network for container communication and Traefik as the reverse proxy for external access.
┌─────────────────────────────────────┐
│ External Users │
└─────────────────┬───────────────────┘
│ HTTPS/HTTP
┌─────────────────▼───────────────────┐
│ Host Server (80/443) │
│ ┌─────────────────────────────────┐│
│ │ agenta-network (bridge) ││
│ │ ││
┌───────────────────────────────────┼──┼─────────────────────────────────┼┼─┐
│ │ │ ││ │
│ ┌─────────────────────────────────────────────────────────────────────┐│ │
│ │ Traefik (Reverse Proxy) ││ │
│ │ HTTP: 80 → HTTPS: 443 → Dashboard: 8080 ││ │
│ │ SSL Termination & Routing ││ │
│ └─┬─────────────────────┬─────────────────────┬─────────────────────┬─┘│ │
│ │ │ │ │ │ │
│ │ /:3000 │ /api:8000 │ /services:80 │ │ │
│ ▼ ▼ ▼ ▼ │ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ Web │ │ API │ │ Completion │ │ Chat │ │ │
│ │ :3000 │──► :8000 │ │ :80 │ │ :80 │ │ │
│ │ │ │ │ │ │ │ │ │ │
│ └─────────────┘ └──────┬──────┘ └─────────────┘ └─────────────┘ │ │
│ │ │ │
│ │ Delegates Tasks │ │
│ ▼ │ │
│ ┌────────────────────────────────────────────────────────────────────┐ │ │
│ │ Worker :celery │ │ │
│ │ (Background Tasks) │ │ │