Only setup macvlan in the macvlan environment

This commit is contained in:
Colin Hebert
2023-01-20 11:55:47 +01:00
parent 354b39523f
commit a13537d2d3
5 changed files with 11 additions and 11 deletions

View File

@@ -17,3 +17,5 @@ networks:
ip_range: ${NASCOMPOSE_MACVLAN_RANGE?} ip_range: ${NASCOMPOSE_MACVLAN_RANGE?}
aux_addresses: aux_addresses:
nas: ${NASCOMPOSE_MACVLAN_HOST_IP?} nas: ${NASCOMPOSE_MACVLAN_HOST_IP?}
labels:
nas-compose.boostrap: true

View File

@@ -33,10 +33,6 @@ services:
nas-compose.boostrap: true nas-compose.boostrap: true
networks: networks:
macvlan:
name: macvlan
labels:
nas-compose.boostrap: true
docker: docker:
name: docker name: docker
labels: labels:

View File

@@ -0,0 +1,4 @@
services:
portainer:
ports:
- 32400:32400

View File

@@ -1,6 +1,9 @@
services: services:
plex: plex:
ports: []
networks: networks:
macvlan: macvlan:
ipv4_address: ${NASCOMPOSE_MACVLAN_PLEX_IP} ipv4_address: ${NASCOMPOSE_MACVLAN_PLEX_IP?}
networks:
macvlan:
external: true

View File

@@ -6,10 +6,7 @@ services:
environment: environment:
PLEX_UID: ${NASCOMPOSE_UID?} PLEX_UID: ${NASCOMPOSE_UID?}
PLEX_GID: ${NASCOMPOSE_GID?} PLEX_GID: ${NASCOMPOSE_GID?}
ports:
- 32400:32400
networks: networks:
- macvlan
- default - default
- traefik - traefik
volumes: volumes:
@@ -48,8 +45,6 @@ services:
# Komga/Kavita # Komga/Kavita
networks: networks:
macvlan:
external: true
traefik: traefik:
external: true external: true