You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
941 B
YAML

5 years ago
version: "3.2"
services:
# ----------------------------------------------------------------------------
pihole:
image: pihole/pihole:latest
container_name: "pihole-main"
volumes:
- /opt/docker-pihole/pihole/:/etc/pihole/
- /opt/docker-pihole/dnsmasq.d/:/etc/dnsmasq.d/
- /opt/docker-pihole/adminCMS/pi-hole.css:/var/www/html/admin/style/pi-hole.css
- /etc/localtime:/etc/localtime:ro
environment:
- VIRTUAL_HOST=MY_DOMAIN_FQDN
- ServerIP=192.168.1.2
- DNS1=127.0.0.1#5353
- DNS2=no
- TZ=Europe/Zurich
- WEBPASSWORD=MY_ADMIN_PASSWORD
- WEB_PORT=81
- INTERFACE=enp1s0
#ports:
# - 53:53/tcp
# - 53:53/udp
# - 67:67/udp
# - 81:80
#networks:
# - local
restart: always
network_mode: "host"
# ------------------------------------------------------------------------------
#networks:
# local:
# driver: bridge