Compare commits

..

5 Commits

Author SHA1 Message Date
5f52e8d3ab added Træfik docker network 2022-01-09 14:27:38 +01:00
fdbc984b23 fixed environment assign error
docker-compose example on https://hub.docker.com/r/pihole/pihole is wrong, and I was stupid by not checking it before copypasting...
2022-01-09 14:13:59 +01:00
bc1a43b413 fixed a typo on WEBPASSWORD 2022-01-09 14:08:19 +01:00
9e57f78488 fixed formatting on README.md 2022-01-09 14:02:33 +01:00
27e2a5cc52 added gitignore
almost forgot
2022-01-09 14:01:20 +01:00
3 changed files with 8 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
data
.env

View File

@ -1,5 +1,5 @@
# PiHole Deployment
For a local Træfik installation with self-signed certificates, comment out the "certresolver=letsencrypt" line.
For a local installation without Træfik, simply add "80:80/tcp" in the ports section.
For a local Træfik installation with self-signed certificates, comment out the "certresolver=letsencrypt" line.<br/>
For a local installation without Træfik, simply add "80:80/tcp" in the ports section.<br/>
DHCP is provided from the router/firewall, if providing DHCP from PiHole is needed, add "cap_add: NET_ADMIN" at the end of the "pihole" service.

View File

@ -6,8 +6,8 @@ services:
container_name: ${PH_CONTAINER_NAME}
restart: unless-stopped
environment:
- TZ: "${PH_TIMEZONE}"
- WEBPASSWORD: "${PH_WEPASSWORD}"
- TZ="${PH_TIMEZONE}"
- WEBPASSWORD="${PH_WEBPASSWORD}"
labels:
- traefik.enable=true
- traefik.docker.network=traefik-proxy
@ -25,6 +25,8 @@ services:
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=letsencrypt
# specify a service so a custom port can be used
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
networks:
- traefik-proxy
ports:
- "53:53/tcp"
- "53:53/udp"