Benutzer-Werkzeuge

Webseiten-Werkzeuge


projekte:docker:container:pihole:start

Dies ist eine alte Version des Dokuments!


Pihole Container

Pihole ist ein DNS-Server der die Namensaufloesung fuer Werbung und schaedliche Webseiten unterdrueckt. Ebenso kann man lokale Domaenen konfigurieren und aufloesen lassen was ich mit meiner beispiel.domain Domaene mache.

compose Datei

compose Datei

version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    image: pihole/pihole:latest
    # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
    ports:
      - "83:80/tcp"
      - "53:53/tcp"
      - "53:53/udp"
    environment:
      TZ: Germany/Berlin
      WEBPASSWORD: 'HIER_WEBPASSWORT_EINTRAGEN'
      PIHOLE_DNS_: 9.9.9.9;149.112.112.112;1.1.1.1
      DNSSEC: 'true'
      ServerIP: 0.0.0.0 # Actual server IP. Matches DHCP conf file IP
      VIRTUAL_HOST: pihole.net17.porz # Same as port traefik config
      DNSMASQ_LISTENING: all
      WEBTHEME: default-dark
      PIHOLE_DOMAIN: n17.de
    #  WEBPASSWORD: set a secure password here or it will be random
    # Volumes store your data between container upgrades
    volumes:
      - /docker/data/volumes/pihole/pihole:/etc/pihole
      - /docker/data/volumes/pihole/dnsmasq.d:/etc/dnsmasq.d
    networks:
      - traefik_proxy
    deploy:
      placement:
        constraints:
          - node.role == manager
      labels:
        - traefik.enable=true
        - traefik.docker.network=traefik_proxy
        - traefik.http.routers.pihole.rule=Host(`pihole.net17.porz`)
        - traefik.http.routers.pihole.entrypoints=https
        - traefik.http.routers.pihole.tls=true
        - traefik.http.routers.pihole.service=srv82@file
        - traefik.http.services.pihole.loadbalancer.server.port=82
networks:
  traefik_proxy:
    external: true

Apache Konfiguration



projekte/docker/container/pihole/start.1670429572.txt.gz · Zuletzt geändert: 2022/12/07 17:12 von admin