Created
February 3, 2026 17:17
-
-
Save quanhua92/40363d20219a8061b21dffe89070941c to your computer and use it in GitHub Desktop.
docker compose socks5 proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| socks5: | |
| image: serjs/go-socks5-proxy | |
| container_name: socks5 | |
| restart: always | |
| # Host mode bypasses the Docker bridge, solving the IPv6 'network unreachable' bug | |
| network_mode: "host" | |
| env_file: .env | |
| environment: | |
| # In host mode, we set the internal listen port to your desired port | |
| - PROXY_PORT=9876 | |
| # Note: 'dns', 'ports', and 'sysctls' are typically ignored or not | |
| # required when using network_mode: host. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment