Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.9"
- # Common environment values
- x-environment: &default-tz-puid-pgid
- TZ: $TZ
- PUID: $PUID
- PGID: $PGID
- ############################# SERVICES ########################################
- services:
- ############################# FRONT-END #######################################
- #PI-HOLE
- pihole:
- <<: *common-keys-core
- container_name: pihole
- image: pihole/pihole:latest
- # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
- #network_mode: "host"
- ports:
- - "53:53/tcp"
- - "53:53/udp"
- #- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- - "8080:80/tcp"
- environment:
- TZ: $TZ
- WEBPASSWORD: '1234'
- DNSMASQ_LISTENING: 'all'
- FTLCONF_LOCAL_IPV4: $SERVER_IP
- # Volumes store your data between container upgrades
- volumes:
- - $DOCKERDIR/appdata/pihole:/etc/pihole
- - $DOCKERDIR/appdata/pihole/dnsmasq.d:/etc/dnsmasq.d
- # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
- cap_add:
- - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
- labels:
- - "com.centurylinklabs.watchtower.enable=false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement