Volume Mounts
Configuration File
The most basic volume mount is for the configuration file:Data Directory
For persistent data (plugins, extensions, logs):Multiple Configuration Files
If you need to mount additional files:Read-Only Mounts
For security, mount configuration as read-only:Floodgate Key (Bedrock Support)
When using Bedrock cross-play:Environment Variables
Gate supports environment variables for sensitive configuration values.Velocity Forwarding Secret
config.yml:
BungeeGuard Secret
Using Environment Files
Create a.env file:
Networking
Host Network Mode
Best performance, but less isolation:Bridge Network Mode
Better isolation with custom networks:Internal Networks
Prevent backend servers from accessing the internet:Custom Port Mappings
Multiple Ports
For Gate API and query protocol:IPv6 Support
Enable IPv6 in Docker:Resource Limits
Memory Limits
CPU Limits
Security Configuration
Running as Non-Root User
The distroless image runs as non-root by default. For the JRE variant:Read-Only Root Filesystem
Dropping Capabilities
Security Options with Docker Compose
Logging Configuration
JSON Logging Driver
Syslog Driver
Docker Compose Logging
Health Checks
TCP Health Check
Health checks require shell utilities, so use the JRE variant.
Docker Compose Health Check
Using Gate API for Health Checks
If you have the API enabled:Bedrock Edition (Cross-Play) Setup
For Bedrock cross-play with managed Geyser:config.yml:
Troubleshooting
Container Won’t Start
Check logs:Permission Issues
Fix file permissions:Network Connectivity Issues
Test network connectivity:Port Already in Use
Find what’s using the port:Cannot Connect to Backend Servers
Verify backend servers are running:High Memory Usage
Monitor resource usage:Container Keeps Restarting
Check restart policy:Debug Mode
Enable debug logging inconfig.yml:
Inspecting Configuration
View loaded configuration:Testing Connectivity
From host:Performance Tuning
For JRE Variant
Optimize Java flags:Network Performance
Adjust compression settings inconfig.yml:
Connection Tuning
Next Steps
Production Guide
Best practices for production deployments
Monitoring
Monitor your Gate proxy in production

