I run horwood.cloud

Pixelfed

Could you help fund my server 👉 Fund me

  • 2 Posts
  • 31 Comments
Joined 2 years ago
cake
Cake day: July 27th, 2023

help-circle




  • sure, you can see below that port 53 is only on a secondary IP I have on my docker host.

    ---
    services:
      pihole01:
        image: pihole/pihole:latest
        container_name: pihole01
        ports:
          - "8180:80/tcp"
          - "9443:443/tcp"
          - "192.168.1.156:53:53/tcp" # this will only bind to that IP
          - "192.168.1.156:53:53/udp" # this will only bind to that IP
          - "192.168.1.156:67:67/udp" # this will only bind to that IP
        environment:
          TZ: 'Europe/London'
          FTLCONF_webserver_api_password: 'mysecurepassword'
          FTLCONF_dns_listeningMode: 'all'
        dns:
          - '127.0.0.1'
          - '192.168.1.1'
        restart: unless-stopped
        labels:
            - "traefik.http.routers.pihole_primary.rule=Host(`dns01.example.com`)"
            - "traefik.http.routers.pihole_primary.service=pihole_primary"
            - "traefik.http.services.pihole_primary.loadbalancer.server.port=80"