# Alternative for native Linux Docker hosts. ipvlan L2 often works better than # macvlan on switches/APs that dislike multiple MAC addresses behind one port. # Not expected to work directly on macOS OrbStack for the same VM/NIC reason. 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: ipvlan driver_opts: parent: eth0 ipvlan_mode: l2 ipam: config: - subnet: 192.168.2.0/24 gateway: 192.168.2.1 ip_range: 192.168.2.200/32