Hi all,
is it possible to run following command in docker compose traefik service?
ip route add [ADDRESS POOL] via [DOCKER NETWORK ADDRESS]
I try to figure it out why I ask this question.
I have traefik configured prefectly, and through file provider, I forward a domain traffic to a LAN device.
I need to add a different address set in order to do that.
What i did (and it works fine) is:
- Add following property to traefik service in docker compose
cap_add: - NET_ADMIN
- Use the traefik container terminal
docker-compose exect -it traefik /bin/sh
- Run the command I report above
I wish to find a way to do this from docker compose file or, if it is not possible, by create a Dockerfile FROM traefik, but I'm stuck