Properly isolated networks

master
Meliurwen 4 years ago
parent 397fb73048
commit 4c7f9a0a80
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 5
      docker-compose.yml

@ -17,6 +17,7 @@ services:
- ${PHOLE_DNS1} - ${PHOLE_DNS1}
restart: unless-stopped restart: unless-stopped
networks: networks:
- default
- piholenetwork - piholenetwork
environment: environment:
TZ: ${TZ} TZ: ${TZ}
@ -59,6 +60,7 @@ services:
ports: ports:
- "${OGEN_PORT}:${OGEN_PORT}/${OGEN_PROTOCOL}" - "${OGEN_PORT}:${OGEN_PORT}/${OGEN_PROTOCOL}"
networks: networks:
- default
- piholenetwork - piholenetwork
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
@ -71,5 +73,6 @@ services:
DNS1: ${OGEN_DNS1} # Add an IPv4 Address or a container name DNS1: ${OGEN_DNS1} # Add an IPv4 Address or a container name
networks: networks:
default:
piholenetwork: piholenetwork:
driver: bridge internal: true

Loading…
Cancel
Save