Files
nas-compose/bootstrap/compose.macvlan.yaml
2024-09-26 15:59:37 +02:00

24 lines
644 B
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
services:
portainer:
networks:
macvlan:
ipv4_address: ${NASCOMPOSE_MACVLAN_PORTAINER_IP?}
networks:
macvlan:
name: 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_HOST_IP?}
labels:
nas-compose.boostrap: true