Hello,
sorry maybe for the crossposting I did in the german section, now I found a hind that much more english support is possible, so I try the same in this section.
If this is not wanted, please feel free to delete my german post: https://discourse.pi-hole.net/t/probleme-beim-installieren-setup-docker/68071/1
Unfortunately I have some problems with the installation / setup.
I have a Volkszähler running from a Raspberry 3, but the computing power is no longer sufficient. That's why I've now upgraded the hardware considerably and want to have a much wider range of software. Everything should run on one system. I'm getting rid of the Raspberry. (Yes, I know, I could also install pihole on the Raspberry alone, I could do that with all the other applications too, but that's not the goal!!!!)
I have jailbroken an ASUS CHROMEBOX 3 Intel i7-8550U 16GB 64GB SSD and installed PROXMOX on it.
It runs an LXC container with Docker.
I want to run some applications in Docker:
Portainer, HomeAssistant, MQTT, CaSSAndRA, Node-RED, Grafana, Octoprint, Volkszähler, AdGuard, Zigbee2MQTT, Watchtower and so on.
None of the applications are running yet, everything is still under construction or in test mode before it goes live.
I now want to put together a docker-compose.yaml so that I can configure and start the pihole container via Docker compose (yes, there are other ways, but that's exactly what I want and nothing else).
Unfortunately, I'm only halfway there, and I don't understand why. Maybe someone can help?
I want to create two volumes:
I think that worked?!
My docker-compose.yaml looks like this so far (I have copied it together, I would be grateful for any hints as to whether it makes sense):
version: "3.7"
services:
pihole:
image: pihole/pihole:latest
container_name: 07_Pihole
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
# DHCP Server Usage
#- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: Europe/Berlin
WEBPASSWORD: raspi
DNS1: 1.1.1.1
DNS2: 1.0.0.1
# Volumes store your data between container upgrades
volumes:
- ./data/pihole/conf/:/etc/pihole/
- ./data/dnsmasq.d/conf/:/etc/dnsmasq.d/
# run `touch ./var-log/pihole.log` first unless you like errors
# - './var-log/pihole.log:/var/log/pihole.log'
dns:
- 127.0.0.1
- 1.1.1.1
labels:
com.centurylinklabs.watchtower.enable: "true"
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
#cap_add:
# - NET_ADMIN
networks:
- app-nw
networks:
app-nw:
internal: false
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-pihole
This error message then appears:
Error response from daemon: driver failed programming external connectivity on endpoint 07_Pihole (31516d70f81d9cc873d484a40ec7a54b421578d52d43f4e9a13068): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use
Many thanks and best regards,
Chris