app-store/apps/pihole/docker-compose.yml
Nicolas Meienberger edec0d0ca4
feat: app configs local domains (#713)
* feat(pairdrop): change config to support local domain

* feat(paperless-ngx): change config to support local domain

* feat(peppermint): change config to support local domain

* feat(photoprism): change config to support local domain

* feat(pihole): change config to support local domain

* feat(plausible): change config to support local domain

* feat(plex): change config to support local domain

* feat(podfetch): change config to support local domain

* feat(portainer): change config to support local domain

* feat(privatebin): change config to support local domain

* feat(prowlarr): change config to support local domain

* feat(proxitok): change config to support local domain

* feat(qbittorrent): change config to support local domain

* feat(radarr): change config to support local domain

* feat(readarr): change config to support local domain

* feat(resilio-sync): change config to support local domain

* feat(romm): change config to support local domain

* feat(rss): change config to support local domain

* feat(sabnzbd): change config to support local domain

* feat(searxng): change config to support local domain

* feat(send): change config to support local domain

* feat(simplex-smp): change config to support local domain

* feat(sonarr): change config to support local domain

* feat(syncthing): change config to support local domain

* feat(tasks-md): change config to support local domain

* feat(tautulli): change config to support local domain

* feat(teddit): change config to support local domain

* feat(transmission): change config to support local domain

* feat(tubearchivist): change config to support local domain

* feat(umami): change config to support local domain

* feat(uptime-kuma): change config to support local domain

* feat(vaultwarden): change config to support local domain

* feat(vikunja): change config to support local domain

* feat(wg-easy): change config to support local domain

* feat(wikijs): change config to support local domain

* feat(wizarr): change config to support local domain

* feat(your-spotify): change config to support local domain

* chore: labels formatting issues
2023-06-18 18:02:29 +02:00

52 lines
1.9 KiB
YAML

version: "3.7"
services:
pihole:
container_name: pihole
image: pihole/pihole:2023.05.2
restart: unless-stopped
hostname: pihole
dns:
- 127.0.0.1
ports:
- ${NETWORK_INTERFACE:-0.0.0.0}:53:53/tcp
- ${NETWORK_INTERFACE:-0.0.0.0}:53:53/udp
- ${APP_PORT}:80
volumes:
- ${APP_DATA_DIR}/data/pihole:/etc/pihole
- ${APP_DATA_DIR}/data/dnsmasq:/etc/dnsmasq.d
environment:
TZ: ${TZ}
WEBPASSWORD: ${APP_PASSWORD}
FTLCONF_REPLY_ADDR4: 10.21.21.201
cap_add:
- NET_ADMIN
networks:
tipi_main_network:
ipv4_address: 10.21.21.201
labels:
# Main
traefik.enable: true
traefik.http.middlewares.pihole-web-redirect.redirectscheme.scheme: https
traefik.http.services.pihole.loadbalancer.server.port: 80
# Web
traefik.http.routers.pihole-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.pihole-insecure.entrypoints: web
traefik.http.routers.pihole-insecure.service: pihole
traefik.http.routers.pihole-insecure.middlewares: pihole-web-redirect
# Websecure
traefik.http.routers.pihole.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.pihole.entrypoints: websecure
traefik.http.routers.pihole.service: pihole
traefik.http.routers.pihole.tls.certresolver: myresolver
# Local domain
traefik.http.routers.pihole-local-insecure.rule: Host(`pihole.${LOCAL_DOMAIN}`)
traefik.http.routers.pihole-local-insecure.entrypoints: web
traefik.http.routers.pihole-local-insecure.service: pihole
traefik.http.routers.pihole-local-insecure.middlewares: pihole-web-redirect
# Local domain secure
traefik.http.routers.pihole-local.rule: Host(`pihole.${LOCAL_DOMAIN}`)
traefik.http.routers.pihole-local.entrypoints: websecure
traefik.http.routers.pihole-local.service: pihole
traefik.http.routers.pihole-local.tls: true