Docker deployment is the recommended solution for production environments in four steps:
- environmental preparation::
- Ensure Docker version 18.06+
- Open the required port (default 8080)
- Mirror Image Acquisition: Implementation
docker pull ghcr.io/yusing/go-proxyGet the official image - service activation: The base command is
docker run -p 8080:8080 ghcr.io/yusing/go-proxy - Advanced Configuration::
- Mount custom configurations:
-v ./config.yaml:/app/config.yaml - Setting environment variables:
-e PROXY_MODE=secure - Running in the background: add
-dparameters
- Mount custom configurations:
Typical production deployments will combine docker-compose for multi-container management, and it is recommended to configure resource limits (e.g. 2GB of memory) and health checks. After the first deployment, thedocker logs <container_id>View real-time logs to verify the status of the service. To enable HTTPS, an additional certificate file needs to be mounted to the container's/etc/sslCatalog.
This answer comes from the articleGo-Proxy: A High Performance Reverse Proxy Server for Docker IntegrationThe































