summaryrefslogtreecommitdiff
path: root/roles/pihole/templates
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-01-05 16:13:01 -0500
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-01-05 16:13:01 -0500
commitfb0b3914086484d9284426985984e2c1699ba557 (patch)
tree963a2288a3b33f389972a78efaf3b6462bbe1925 /roles/pihole/templates
parentb62d5f559b81556a1dd6197c72a0c43ba1744477 (diff)
downloadoldinfra-fb0b3914086484d9284426985984e2c1699ba557.tar.gz
oldinfra-fb0b3914086484d9284426985984e2c1699ba557.zip
ldap, internal CA, internal webserver, dns, etc.
Diffstat (limited to 'roles/pihole/templates')
-rw-r--r--roles/pihole/templates/docker-compose.yml.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/pihole/templates/docker-compose.yml.j2 b/roles/pihole/templates/docker-compose.yml.j2
new file mode 100644
index 0000000..ed98d52
--- /dev/null
+++ b/roles/pihole/templates/docker-compose.yml.j2
@@ -0,0 +1,18 @@
+version: "3"
+
+services:
+ pihole:
+ container_name: pihole
+ image: pihole/pihole:latest
+ ports:
+ - "{{ johan_ip }}:53:53/tcp"
+ - "{{ johan_ip }}:53:53/udp"
+ - "127.0.0.1:53:53/tcp"
+ - "127.0.0.1:53:53/udp"
+ - "127.0.0.1:9135:80/tcp"
+ environment:
+ WEBPASSWORD: '{{ pihole_webpwd }}'
+ volumes:
+ - './etc-pihole:/etc/pihole'
+ - './etc-dnsmasq.d:/etc/dnsmasq.d'
+ restart: unless-stopped