Containerized Proxy Management for Railway
A containerized 3x-UI proxy management system with nginx reverse proxy, designed for easy deployment on Railway platform.
Features
3x-UI Integration
Uses 3x-ui v3.5.0 for VPN and proxy management. Installed to /usr/local/x-ui/ with data in /etc/x-ui.
Nginx Reverse Proxy
Template-based nginx configuration for flexible routing across services. Config located at /etc/nginx/nginx.conf.template.
Railway Deployment
Optimized for Railway platform with dynamic $PORT handling. Environment variable substitution enables flexible deployment across platforms.
Alpine Linux
Lightweight Alpine 3.19 base image keeps the container small and secure. Entry point via /start.sh for service initialization.
Tehran Timezone
Pre-configured for Asia/Tehran timezone. Centralized logs in /var/log/x-ui for monitoring and debugging.
Quick Start
The application automatically adapts to Railway’s dynamic port assignment through the $PORT environment variable. Environment variable substitution allows flexible deployment across different platforms while maintaining the same container image.
# Build and run the GG container
docker build -t gg .
docker run -p 8080:$PORT gg