Set MacVLAN up in its own file

This commit is contained in:
Colin Hebert
2023-01-04 09:17:51 +01:00
parent 573293ae65
commit 1e1ba7b4df
3 changed files with 33 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
services:
traefik:
networks:
macvlan:
ipv4_address: ${NASCOMPOSE_MACVLAN_TRAEFIKIP}
networks:
macvlan:
driver: macvlan
driver_opts:
parent: ${NASCOMPOSE_MACVLAN_IFACE?}
ipam:
config:
- subnet: ${NASCOMPOSE_MACVLAN_SUBNET?}
gateway: ${NASCOMPOSE_MACVLAN_GATEWAY?}
ip_range: ${NASCOMPOSE_MACVLAN_RANGE?}
aux_addresses:
nas: ${NASCOMPOSE_MACVLAN_HOSTIP?}