2.0 KiB
2.0 KiB
title, description
| title | description |
|---|---|
| Network Architecture | Understanding Kompose network design |
Network Architecture
Single Network Design
All stacks communicate through a unified Docker network:
┌─────────────────────────────────────────────────┐
│ kompose Network (Bridge) │
│ │
│ ┌───────┐ ┌───────┐ ┌──────┐ ┌──────┐ │
│ │ Blog │ │ News │ │ Auth │ │ Data │ │
│ └───────┘ └───────┘ └──────┘ └──────┘ │
│ │ │ │ │ │
│ ┌───────────────────────────────────────┐ │
│ │ Traefik (Reverse Proxy) │ │
│ └───────────────────────────────────────┘ │
│ │ │
└────────────────────┼────────────────────────────┘
│
┌──────┴──────┐
│ Internet │
└─────────────┘
Network Configuration
Default network: kompose (defined in root .env)
Override network:
# Temporary override
./kompose.sh --network staging "*" up -d
# Permanent override
echo "NETWORK_NAME=production" >> .env
Special Network Cases
trace stack - Dual network setup:
kompose- External access via Traefiksignoz- Internal component communication
vpn stack - Dual network setup:
kompose- Web UI accesswg- WireGuard tunnel network