Initial homelab infrastructure
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
restart: always
|
||||
network_mode: host
|
||||
environment:
|
||||
- TZ=Europe/London
|
||||
- WEBPASSWORD=${PIHOLE_PASSWORD:-admin}
|
||||
- WEBPORT=8080
|
||||
- DNSMASQ_LISTENING=all
|
||||
volumes:
|
||||
- ./etc-pihole:/etc/pihole
|
||||
- ./etc-dnsmasq.d:/etc/dnsmasq.d
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.pihole.rule=Host(`pihole.zea.lt`)"
|
||||
- "traefik.http.routers.pihole.entrypoints=websecure"
|
||||
- "traefik.http.routers.pihole.tls.certresolver=leresolver"
|
||||
- "traefik.http.routers.pihole.middlewares=pihole-prefix"
|
||||
- "traefik.http.middlewares.pihole-prefix.addprefix.prefix=/admin"
|
||||
- "traefik.http.services.pihole.loadbalancer.server.port=8080"
|
||||
Reference in New Issue
Block a user