I am new to docker and couldn’t figure out howto proceed with troubleshooting. I would appreciate to be pointed in the right direction.
Test_System:
- Version: 6.9.10-5 (Shaitan)
- Prozessor: AMD Turion(tm) II Neo N40L Dual-Core Processor
- Kernel: Linux 6.2.16-20-bpo11-pve
- DHCP Server using pihole running on a Raspi 1b with a DHCP range from 192.168.1.120 - 192.168.1.239
- /dev/md0 formatted with ext4
I followed the howto of:
- omv-extras.org docker / compose
- The Jellyfin container installation works fine according to the howto
- The syntax check of the pihole compose file passed
- apparmor is disabled at boot time, nor installed
- The pihole container is up and running, but the pihole service is not running, nor lighttpd
- The compose file is taken from raulfg3 and customized
Variables I used:
#PUID=1001
#PGID=100
TZ=Europe/Berlin
URL=fritz.box
Password2=super_secret
DATA=/srv/dev-disk-by-uuid-64145f7e-a1fa-4ee2-b2d0-9007ebc5f053/data
- macvlan
"Subnet": "192.168.1.0/24", "IPRange": "192.168.1.240/29", "Gateway": "192.168.1.1"
Parent : eth0 corresponding to omv network settings
Code
[
{
"Name": "mynet",
"Id": "f688f0b76f40d4ad2e096e025fcc05c214839a499e4156bdeb3827318e29f595",
"Created": "2023-12-20T09:11:26.144069624+01:00",
"Scope": "local",
"Driver": "macvlan",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "192.168.1.0/24",
"IPRange": "192.168.1.240/29",
"Gateway": "192.168.1.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"df675a6b0d77f20cd1ccf19bb7ba051ebfa7765ffa0553d84083d6dfad93049a": {
"Name": "pihole",
"EndpointID": "22d1c0a779f2e149113f56ccffe1972bef14519b3eda975a1bbf59302ecdd7fe",
"MacAddress": "02:42:c0:a8:01:f1",
"IPv4Address": "192.168.1.241/24",
"IPv6Address": ""
}
},
"Options": {
"parent": "eth0"
},
"Labels": {}
}
]
END OF LINE
█
Display More
compose file:
Code
# Note: 192.168.1.xxx is an example network, you must update all these to match your own.
# Thanks to http://tonylawrence.com/posts/unix/synology/free-your-synology-ports/ for your reference post
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pihole
domainname: '${URL}' # <-- Update on enviromen.env file
networks:
mynet: # <-- MACVlan Name You need to create first in Portainer WebGUI.
ipv4_address: 192.168.1.241 # <-- Update to your desired Pihole IPv4
# https://www.youtube.com/watch?v=4741-YR31fM
# https://www.youtube.com/watch?v=o7nn6Tv-PAw
cap_add:
- NET_ADMIN # Recommended but not required (DHCP needs NET_ADMIN)
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "80:80/tcp"
environment:
#ADMIN_EMAIL: $email
FTLCONF_LOCAL_IPV4: 192.168.1.241 # <-- Update (match ipv4_address of PiHole)
VIRTUAL_HOST: 'pihole.${URL}' # <-- Update (match hostname + domainname)
WEBPASSWORD: '${Password2}' # <-- Add password (if required)
PIHOLE_DNS_: 8.8.8.8;8.8.4.4 # <-- Change by your prefered DNS service like 1.1.1.1
TZ: '${TZ}' # <-- Your Time Zone here
IPv6: "false"
# Volumes store your data between container upgrades
volumes:
- '${DATA}/pihole:/etc/pihole'
- '${DATA}/pihole/dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
restart: unless-stopped
networks:
mynet:
external: true
Display More
compose settings: