From 7401e0698ba4694dc8d1475d33ee50cf53654760 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 12 Feb 2024 21:23:07 +0000 Subject: [PATCH] Dateien nach "install-pihole-on-portainer" hochladen --- .../docker-compose-pihole.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 install-pihole-on-portainer/docker-compose-pihole.yml diff --git a/install-pihole-on-portainer/docker-compose-pihole.yml b/install-pihole-on-portainer/docker-compose-pihole.yml new file mode 100644 index 0000000..d06b7b0 --- /dev/null +++ b/install-pihole-on-portainer/docker-compose-pihole.yml @@ -0,0 +1,37 @@ +# Docker Compose version +version: "3" + +# Define services (containers to be created) +services: + # Service name: pihole + pihole: + # Name of the container instance + container_name: pihole + + # Image to use for this container + # Use the specified version of the pihole image + image: pihole/pihole:2024.01.0 + + # Expose and map ports (host:container) + ports: + - "53:53/tcp" # DNS (TCP) + - "53:53/udp" # DNS (UDP) + - "7300:80/tcp" # Web UI HTTP + + # Environment variables + environment: + TZ: "UTC" # Time Zone; Update this to your time zone + WEBPASSWORD: "password" # Admin password for web UI; Change this to your desired admin password + + # Mount volumes for persistent data + volumes: + - "/data/pihole/data/pihole:/etc/pihole" # Pi-hole data + - "/data/pihole/data/dnsmasq:/etc/dnsmasq.d" # dnsmasq data + + # Restart policy for the container when it exits + restart: unless-stopped + + # DNS servers for this container to use + dns: + - 127.0.0.1 # Localhost for internal resolution + - 1.1.1.1 # Cloudflare DNS for external resolution