Hey all!
How to create a Docker compose service that has two networks but map host port only to one of them?
vpn:
ports:
- target: 1194
published: "1194"
protocol: udp
mode: host
host_ip: 172.29.0.1
networks:
int-network:
priority: 10
ext-network:
ipv4_address: 172.29.0.1
priority: 100
networks:
int-network:
ext-network:
ipam:
config:
- subnet: 172.29.0.0/24
ip_range: 172.29.0.0/24
gateway: 172.29.0.254
but it throws an error:
Error response from daemon: driver failed programming external connectivity on endpoint vpn Error starting userland proxy: listen udp4 172.29.0.1:1194: bind: cannot assign requested address