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 link add macvlan0 link bond0 type macvlan mode bridge
|
||||||
ip addr add 192.168.1.1/32 dev macvlan0
|
ip addr add 192.168.1.1/32 dev macvlan0
|
||||||
ip link set macvlan0 up
|
ip link set macvlan0 up
|
||||||
|
ip route add 192.168.1.0/24 dev macvlan0
|
||||||
```
|
```
|
||||||
|
|
||||||
Run portainer once
|
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:
|
plex:
|
||||||
image: plexinc/pms-docker:plexpass
|
image: plexinc/pms-docker:plexpass
|
||||||
ports:
|
ports:
|
||||||
- 32400:32400 #TODO Use MacVLAN instead
|
- 32400:32400
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- traefik
|
- traefik
|
||||||
|
|||||||
Reference in New Issue
Block a user