docs: add LAN socks5 compose deployment

This commit is contained in:
2026-05-29 11:55:16 +08:00
parent 3c8d31b9e9
commit 13b66aeea6
6 changed files with 125 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
# Use this only on a native Linux Docker host with a real NIC on 192.168.2.0/24.
# It is not expected to work directly on macOS OrbStack because the Docker daemon
# is inside a VM and cannot attach macvlan to macOS en0.
services:
socks5:
image: serjs/go-socks5-proxy:latest
container_name: socks5-server-lan
restart: unless-stopped
env_file:
- .env
networks:
socks5_lan:
ipv4_address: 192.168.2.200
networks:
socks5_lan:
driver: macvlan
driver_opts:
# Replace eth0 with the Linux host's physical NIC, e.g. eno1/enp3s0.
parent: eth0
ipam:
config:
- subnet: 192.168.2.0/24
gateway: 192.168.2.1
ip_range: 192.168.2.200/32