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?}
aux_addresses:
nas: ${NASCOMPOSE_MACVLAN_HOST_IP?}
labels:
nas-compose.boostrap: true

View File

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

View File

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

View File

@@ -1,6 +1,9 @@
services:
plex:
ports: []
networks:
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:
PLEX_UID: ${NASCOMPOSE_UID?}
PLEX_GID: ${NASCOMPOSE_GID?}
ports:
- 32400:32400
networks:
- macvlan
- default
- traefik
volumes:
@@ -48,8 +45,6 @@ services:
# Komga/Kavita
networks:
macvlan:
external: true
traefik:
external: true