Add subdomain for pihole and route it through traefik.
This commit is contained in:
@@ -43,7 +43,8 @@ services:
|
|||||||
TZ: "Europe/Berlin"
|
TZ: "Europe/Berlin"
|
||||||
WEBPASSWORD: "lmaa,dw."
|
WEBPASSWORD: "lmaa,dw."
|
||||||
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
|
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
|
||||||
VIRTUAL_HOST: pihole.lan
|
VIRTUAL_HOST: pihole.fam-steinle.de
|
||||||
|
CORS_HOSTS: homer.fam-steinle.de
|
||||||
mac_address: d0:ca:ab:cd:ef:01
|
mac_address: d0:ca:ab:cd:ef:01
|
||||||
networks:
|
networks:
|
||||||
home:
|
home:
|
||||||
@@ -58,6 +59,21 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- pihole:/etc/pihole/
|
- pihole:/etc/pihole/
|
||||||
- dnsmasq:/etc/dnsmasq.d/
|
- dnsmasq:/etc/dnsmasq.d/
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.pihole.entrypoints=web"
|
||||||
|
- "traefik.http.routers.pihole.rule=Host(`pihole.fam-steinle.de`)"
|
||||||
|
- "traefik.http.routers.pihole.middlewares=pihole"
|
||||||
|
- "traefik.http.middlewares.pihole.redirectscheme.scheme=https"
|
||||||
|
- "traefik.http.routers.pihole-secure.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.pihole-secure.rule=Host(`pihole.fam-steinle.de`)"
|
||||||
|
- "traefik.http.routers.pihole-secure.middlewares=pihole-secure"
|
||||||
|
- "traefik.http.middlewares.pihole-secure.headers.addvaryheader=true"
|
||||||
|
- "traefik.http.middlewares.pihole-secure.headers.accesscontrolalloworiginlist=https://homer.fam-steinle.de"
|
||||||
|
- "traefik.http.routers.pihole-secure.service=pihole-secure"
|
||||||
|
- "traefik.http.routers.pihole-secure.tls=true"
|
||||||
|
- "traefik.http.routers.pihole-secure.tls.certresolver=infomaniak"
|
||||||
|
- "traefik.http.services.pihole-secure.loadbalancer.server.port=80"
|
||||||
|
|
||||||
unbound:
|
unbound:
|
||||||
image: mvance/unbound
|
image: mvance/unbound
|
||||||
|
|||||||
Reference in New Issue
Block a user