Deployment Options
Gate supports multiple deployment methods to suit different infrastructure needs:Docker Deployment
The simplest way to run Gate in production. Gate provides official Docker images with two variants:- Distroless variant (default): Minimal security-focused image based on Debian
- JRE variant: Includes Java Runtime Environment for plugin support
- Quick deployments and testing
- Single-server setups
- Development environments
Docker Compose
Ideal for multi-server networks with Gate as the frontend proxy.docker-compose.yml
- Local multi-server networks
- Development and testing
- Small to medium production deployments
Kubernetes
Production-grade orchestration for scalable and resilient deployments.deploy.yaml
- Large-scale production deployments
- High availability requirements
- Auto-scaling needs
- Multi-region deployments
Bare Metal / VM
Direct installation on servers or virtual machines.- Existing infrastructure
- Maximum performance requirements
- Custom system integration
Architectural Patterns
Single Proxy Architecture
Simplest deployment with one Gate instance routing to multiple backend servers.- Simple to configure and maintain
- Low latency
- Minimal resource overhead
- Single point of failure
- Limited scalability
High Availability Architecture
Multiple Gate instances behind a load balancer for redundancy.- No single point of failure
- Horizontal scalability
- Rolling updates possible
- More complex setup
- Requires load balancer
- Higher resource usage
Lite Mode Architecture
Gate Lite acts as a lightweight reverse proxy routing by virtual host.- Minimal overhead
- Host-based routing
- Supports proxy-behind-proxy
- Limited features (no server switching)
- Players can’t move between servers
Network Topology
Edge Deployment
Gate at network edge, directly exposed to internet:- Enable rate limiting (quota settings)
- Use strong forwarding secrets
- Enable forceKeyAuthentication
- Configure proper firewall rules
Behind Load Balancer
Gate behind TCP/Layer 4 load balancer:- TCP (Layer 4) load balancing
- Support for proxy protocol v2
- Session persistence (optional)
- Health checks on port 9090
Resource Requirements
Minimum Requirements
- CPU: 1 core
- RAM: 512 MB
- Network: 100 Mbps
- Storage: 100 MB
Recommended Production
- CPU: 2-4 cores
- RAM: 1-2 GB
- Network: 1 Gbps
- Storage: 1 GB
High Performance
- CPU: 4-8 cores
- RAM: 4-8 GB
- Network: 10 Gbps
- Storage: 5 GB
Environment Variables
Gate supports configuration through environment variables:Core Configuration
Observability
Java/Runtime Options
Configuration Management
ConfigMap (Kubernetes)
Docker Volume Mounts
File Watching
Gate automatically reloads configuration when the config file changes. To disable:Next Steps
Production Checklist
Essential steps before going live
Monitoring
Set up health checks and metrics

