2019-02-15 05:06:10 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
|
|
|
|
|
2019-05-31 04:22:51 +02:00
|
|
|
services:
|
2021-08-03 23:53:56 +02:00
|
|
|
nginx-proxy:
|
|
|
|
image: nginxproxy/nginx-proxy
|
2019-05-31 04:22:51 +02:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
environment:
|
|
|
|
DEFAULT_HOST: pihole.yourDomain.lan
|
|
|
|
volumes:
|
|
|
|
- '/var/run/docker.sock:/tmp/docker.sock'
|
|
|
|
restart: always
|
2016-03-29 04:42:11 +02:00
|
|
|
|
2019-05-31 04:22:51 +02:00
|
|
|
pihole:
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
ports:
|
|
|
|
- '53:53/tcp'
|
|
|
|
- '53:53/udp'
|
|
|
|
- "67:67/udp"
|
|
|
|
- '8053:80/tcp'
|
|
|
|
volumes:
|
2021-12-11 14:37:18 +01:00
|
|
|
- './etc-pihole:/etc/pihole'
|
|
|
|
- './etc-dnsmasq.d:/etc/dnsmasq.d'
|
2019-05-31 04:22:51 +02:00
|
|
|
# run `touch ./var-log/pihole.log` first unless you like errors
|
|
|
|
# - './var-log/pihole.log:/var/log/pihole.log'
|
|
|
|
# Recommended but not required (DHCP needs NET_ADMIN)
|
|
|
|
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
environment:
|
|
|
|
ServerIP: 192.168.41.55
|
|
|
|
PROXY_LOCATION: pihole
|
|
|
|
VIRTUAL_HOST: pihole.yourDomain.lan
|
|
|
|
VIRTUAL_PORT: 80
|
|
|
|
extra_hosts:
|
|
|
|
# Resolve to nothing domains (terminate connection)
|
|
|
|
- 'nw2master.bioware.com nwn2.master.gamespy.com:0.0.0.0'
|
2021-08-03 23:53:56 +02:00
|
|
|
# LAN hostnames for other docker containers using nginx-proxy
|
2019-05-31 04:22:51 +02:00
|
|
|
- 'yourDomain.lan:192.168.41.55'
|
|
|
|
- 'pihole pihole.yourDomain.lan:192.168.41.55'
|
|
|
|
- 'ghost ghost.yourDomain.lan:192.168.41.55'
|
|
|
|
- 'wordpress wordpress.yourDomain.lan:192.168.41.55'
|
|
|
|
restart: always
|
2016-09-24 04:24:14 +02:00
|
|
|
|
2019-05-31 04:22:51 +02:00
|
|
|
# Another container you might want to have running through the proxy
|
|
|
|
# Note it also have ENV Vars like pihole and a host under pihole's extra_hosts
|
|
|
|
# ghost:
|
|
|
|
# image: fractalf/ghost
|
|
|
|
# ports:
|
|
|
|
# - '2368:2368/tcp'
|
|
|
|
# volumes:
|
2021-12-11 14:37:18 +01:00
|
|
|
# - '/etc/ghost:/ghost-override'
|
2019-05-31 04:22:51 +02:00
|
|
|
# environment:
|
|
|
|
# PROXY_LOCATION: ghost
|
|
|
|
# VIRTUAL_HOST: ghost.yourDomain.lan
|
|
|
|
# VIRTUAL_PORT: 2368
|
2020-05-26 17:45:48 +02:00
|
|
|
# restart: always
|