Update 'docker-compose.yaml'

This commit is contained in:
Johan Koke 2021-11-21 17:42:48 +00:00
parent eea4a33bfe
commit 15c7e23743
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
# - "67:67/udp"
# - "9180:80/tcp"
# - "9143:443/tcp"
environment:
TZ: 'Europe/London'
WEBPASSWORD: ${web_password}
ServerIP: '${host_ip}'
VIRTUAL_HOST: '${virtualhostname}'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
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
networks: # Comment out the networks if you don't intend to host this behind an nginx proxy on the same host
- proxy # when commenting the network settings, remember to uncomment the ports for the web interface
networks:
proxy:
external: true