mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 17:06:16 +00:00
update-network
This commit is contained in:
@@ -6,6 +6,8 @@ networks:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.23.0.0/16
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
services:
|
||||
pihole:
|
||||
@@ -15,6 +17,7 @@ services:
|
||||
networks:
|
||||
dns_net:
|
||||
ipv4_address: 172.23.0.7
|
||||
proxy:
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
@@ -23,12 +26,24 @@ services:
|
||||
environment:
|
||||
- 'TZ=Europe/London'
|
||||
- 'WEBPASSWORD=password'
|
||||
- 'DNS1=172.23.0.7#5053'
|
||||
- 'DNS1=172.23.0.8#5053'
|
||||
- 'DNS2=no'
|
||||
volumes:
|
||||
- '/home/ubuntu/docker/pihole/etc-pihole/:/etc/pihole/'
|
||||
- '/home/ubuntu/docker/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.pihole.entrypoints=http"
|
||||
- "traefik.http.routers.pihole.rule=Host(`pihole.yourdomain.com`)"
|
||||
- "traefik.http.middlewares.pihole-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.pihole.middlewares=pihole-https-redirect"
|
||||
- "traefik.http.routers.pihole-secure.entrypoints=https"
|
||||
- "traefik.http.routers.pihole-secure.rule=Host(`pihole.yourdomain.com`)"
|
||||
- "traefik.http.routers.pihole-secure.tls=true"
|
||||
- "traefik.http.routers.pihole-secure.service=pihole"
|
||||
- "traefik.http.services.pihole.loadbalancer.server.port=80"
|
||||
- "traefik.docker.network=proxy"
|
||||
unbound:
|
||||
container_name: unbound
|
||||
image: mvance/unbound:latest
|
||||
|
Reference in New Issue
Block a user