viernes, 11 de diciembre de 2020

Instalando Pi-hole con Docker-Compose en raspberry pi

 Dejo los parámetros que estoy usando para correr pi-hole con docker-compose.

version: "3"


 services:
    pihole:
       container_name: pihole
       image: pihole/pihole
       # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
       ports:
           - "53:53/tcp"
           - "53:53/udp"
           - "67:67/udp"
           - "80:80/tcp"
           - "443:443/tcp"
       environment:
          TZ: 'America/Tu_pais'
          WEBPASSWORD: 'Password.*'
      # WEBPASSWORD: 'set a secure password here or it will be random'
     # Volumes store your data between container upgrades
     volumes:
         - /path/to/Docker/pihole/etc-pihole/:/etc/pihole/'
        - /path/to/Docker/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
    # run `touch ./var-log/pihole.log` first unless you like errors - './var-log/pihole.log:/var/log/pihole.log'
     dns:
         - 127.0.0.1
        -  1.1.1.1
   # Recommended but not required (DHCP needs NET_ADMIN) https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
   cap_add:
      - NET_ADMIN
   restart: unless-stopped

No hay comentarios.:

Publicar un comentario