I would like to set up a reverse proxy (traefik) on a VPS and then give give traefik container a static IP.
This is the network block i want to have in the end:
networks:
t2_proxy:
name: t2_proxy
driver: bridge
ipam:
config:
- subnet: xxx.xxx.xx.0/xx
default:
driver: bridge
socket_proxy:
name: socket_proxy
driver: bridge
ipam:
config:
- subnet: xxx.xxx.xx.0/xx
These are the details from the VPS provider. I have edited the IP addresses but maintained a reasonable level of similarity to what I have on my end:
IPv4 address for eth0: 111.221.222.78
IPv4 address for eth0: 10.20.0.6
IPv6 address for eth0: 2676:b880:daz:h0::j6s:b002
IPv4 address for eth1: 10.115.0.2
VPC IP range: 10.115.0.0/20
From the details above, how does one assign a subnet to a network and a static IP to a service like traefik? Most of these ideas are from smarthomebeginner tutorials.