Add mroe support for macvlan
This commit is contained in:
@@ -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
|
||||
|
||||
5
media.docker-compose.macvlan.yml
Normal file
5
media.docker-compose.macvlan.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
plex:
|
||||
networks:
|
||||
macvlan:
|
||||
ipv4_address: ${NASCOMPOSE_MACVLAN_PLEXIP}
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
plex:
|
||||
image: plexinc/pms-docker:plexpass
|
||||
ports:
|
||||
- 32400:32400 #TODO Use MacVLAN instead
|
||||
- 32400:32400
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
|
||||
Reference in New Issue
Block a user