Stop opening http/https ports when using macvlan

This commit is contained in:
Colin Hebert
2023-01-19 17:12:34 +01:00
parent b42c4facd3
commit 430a18650f
3 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
services:
traefik:
ports:
- 80:80
- 443:443

View File

@@ -1,6 +1,5 @@
services:
traefik:
ports: []
networks:
macvlan:
ipv4_address: ${NASCOMPOSE_MACVLAN_TRAEFIK_IP}

View File

@@ -19,9 +19,6 @@ services:
environment:
NASCOMPOSE_TRAEFIK_DOMAINS: ${NASCOMPOSE_TRAEFIK_DOMAINS?}
NASCOMPOSE_MACVLAN_HOST_IP: ${NASCOMPOSE_MACVLAN_HOST_IP}
ports:
- 80:80
- 443:443
networks:
- macvlan
- traefik