With the help of the following links:
I got it to work with the following:
- add a custom network to my
docker-compose.yml
file. They key iscom.docker.network.bridge.name: docker1
(name it whatever you want i suppose):
networks:
mxi_default:
name: mxi_default
driver: bridge
driver_opts:
com.docker.network.bridge.name: docker1
-
add an interface in luci, covering the
device1
specified incom.docker.network.bridge.name: docker1
fromdocker-compose.yml
:
-
add the new interface to docker firewall zone: