mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-21 06:56:53 +02:00
docker-compose example updated
* updated IP address to match in extra hosts * point jwilder/proxy users to readme for more info * comment default volumes since that is more advanced funcionality
This commit is contained in:
parent
212f4fc70a
commit
0b106ea4de
|
@ -3,23 +3,24 @@ pihole:
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
- "8053:80/tcp"
|
- "80:80/tcp"
|
||||||
volumes:
|
|
||||||
# if these don't exist as files on the host already
|
|
||||||
# docker will try to create them as directories
|
|
||||||
- '/var/log/pihole.log:/var/log/pihole.log'
|
|
||||||
- '/etc/pihole/whitelist.txt:/etc/pihole/whitelist.txt'
|
|
||||||
- '/etc/pihole/blacklist.txt:/etc/pihole/blacklist.txt'
|
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
# docker jwilder/nginx-proxy support
|
|
||||||
environment:
|
environment:
|
||||||
piholeIP: 192.168.1.55
|
# enter your docker host IP here
|
||||||
|
piholeIP:
|
||||||
|
# jwilder/proxy envs, see readme for more info
|
||||||
PROXY_LOCATION: pihole
|
PROXY_LOCATION: pihole
|
||||||
VIRTUAL_HOST: pihole.yourdomain.local
|
VIRTUAL_HOST: pihole.yourdomain.local
|
||||||
VIRTUAL_PORT: 80
|
VIRTUAL_PORT: 80
|
||||||
# Add your own custom hostnames you need for your donmain
|
# Add your own custom hostnames you need for your domain
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
# Point any of the jwilder virtual_host addresses
|
# Point any of the jwilder virtual_host addresses
|
||||||
# to your docker host ip address
|
# to your docker host ip address
|
||||||
- 'pihole.yourdomain.local:192.168.1.2'
|
- 'pihole.yourdomain.local:192.168.1.55'
|
||||||
|
volumes:
|
||||||
|
# WARNING: if these don't exist as files on the host already
|
||||||
|
# docker will try to create them as directories
|
||||||
|
# - '/var/log/pihole.log:/var/log/pihole.log'
|
||||||
|
#- '/etc/pihole/whitelist.txt:/etc/pihole/whitelist.txt'
|
||||||
|
# - '/etc/pihole/blacklist.txt:/etc/pihole/blacklist.txt'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user