Hi there
I’m quite new to docker and was trying to create pihole with docker-compose.Issue is that the yaml doesn’t want to parse… I’ve even copied some code online, tried to do it from scratch but still something is wrong.
This below is actually just the modified version of the docker hub page:
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Europe/Brussels'
WEBPASSWORD: password
DNS1: 1.1.1.1
DNS2: 1.0.0.1
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped
Probably 3 seconds work for someone with some experience