Commit 4aba1eee authored by Nick Busey's avatar Nick Busey

Merge branch 'pi-hole-config' into 'master'

Fixes pi-hole config

See merge request !42
parents 99eaf89d 4c4dc835
Pipeline #42945902 passed with stages
in 36 seconds
......@@ -11,6 +11,13 @@
vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Stop systemd-resolve
systemd:
name: systemd-resolved
enabled: "no"
daemon-reload: "no"
state: stopped
- name: Configure pihole systemd service.
template: src=pihole.service dest=/etc/systemd/system/pihole.service
......
......@@ -11,6 +11,9 @@ services:
pihole:
image: pihole/pihole:latest
restart: unless-stopped
dns: 1.1.1.1
networks:
- traefik_network
volumes:
- /var/homelabos/pihole/config/:/etc/pihole/
- /var/homelabos/pihole/dnsmasq.d/:/etc/dnsmasq.d/
......@@ -18,9 +21,9 @@ services:
- WEBPASSWORD={{ default_password }}
- VIRTUAL_HOST=pihole.{{ domain }}
- ServerIP={{ ansible_ssh_host }}
# ports:
# - 53:53/tcp
# - 53:53/udp
ports:
- 53:53/tcp
- 53:53/udp
labels:
- "traefik.enable=true"
- "traefik.docker.network=homelabos_traefik"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment