Files
socks5-server-lan/docker-compose.macvlan-linux.yml

27 lines
723 B
YAML

# 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