Add mroe support for macvlan

This commit is contained in:
Colin Hebert
2023-01-04 10:23:41 +01:00
parent 90a05f0ec8
commit 7817dc2ce1
3 changed files with 7 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ docker network create -d macvlan -o parent=bond0 --subnet=192.168.0.0/23 --gatew
ip link add macvlan0 link bond0 type macvlan mode bridge
ip addr add 192.168.1.1/32 dev macvlan0
ip link set macvlan0 up
ip route add 192.168.1.0/24 dev macvlan0
```
Run portainer once

View File

@@ -0,0 +1,5 @@
services:
plex:
networks:
macvlan:
ipv4_address: ${NASCOMPOSE_MACVLAN_PLEXIP}

View File

@@ -11,7 +11,7 @@ services:
plex:
image: plexinc/pms-docker:plexpass
ports:
- 32400:32400 #TODO Use MacVLAN instead
- 32400:32400
networks:
- default
- traefik