mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-30 21:20:59 +02:00
17c185b40a
Uncommented cap_add as required in 4.1.1+ to start DNS service, not just for DHCP.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
pihole:
|
|
image: pihole/pihole:latest
|
|
dns:
|
|
- 127.0.0.1
|
|
- 1.1.1.1
|
|
ports:
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
- "80:80/tcp"
|
|
- "443:443/tcp"
|
|
cap_add:
|
|
- NET_ADMIN
|
|
# required if Pi-hole is to provide DHCP
|
|
# network_mode: "host"
|
|
environment:
|
|
# enter your docker host IP here
|
|
ServerIP:
|
|
# IPv6 Address if your network supports it
|
|
#ServerIPv6: 192.168.1.55
|
|
# jwilder/proxy envs, see readme for more info
|
|
PROXY_LOCATION: pihole
|
|
VIRTUAL_HOST: pihole.yourdomain.local
|
|
VIRTUAL_PORT: 80
|
|
# Add your own custom hostnames you need for your domain
|
|
extra_hosts:
|
|
# Point any of the jwilder virtual_host addresses
|
|
# to your docker host ip address
|
|
- 'pihole.yourdomain.local:192.168.1.55'
|
|
volumes:
|
|
# - '/etc/pihole/:/etc/pihole/'
|
|
# WARNING: if this log don't exist as a file on the host already
|
|
# docker will try to create a directory in it's place making for lots of errors
|
|
# - '/var/log/pihole.log:/var/log/pihole.log'
|
|
restart: always
|