restructure services based on host machine
This commit is contained in:
35
nuc/pihole/docker-compose.yml
Normal file
35
nuc/pihole/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
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/udp
|
||||
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
- CORS_HOSTS=pihole.${DOMAIN_ROOT}
|
||||
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
||||
- WEBPASSWORD=${WEB_UI_PASSWORD}
|
||||
|
||||
network_mode: host
|
||||
|
||||
|
||||
# Volumes store your data between container upgrades
|
||||
volumes:
|
||||
- pihole-config_data:/etc/pihole
|
||||
- pihole-dnsmasq_data:/etc/dnsmasq.d
|
||||
- ./pihole-lighttpd.conf:/etc/lighttpd/lighttpd.conf
|
||||
cap_add:
|
||||
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
pihole-config_data:
|
||||
external: true
|
||||
pihole-dnsmasq_data:
|
||||
external: true
|
Reference in New Issue
Block a user