From 2ff7948f55aa994e062844010a34963e3487495c Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Thu, 2 Jan 2025 19:08:57 +0100 Subject: [PATCH] add pihole and placeholder for orbitalsync --- .gitignore | 2 +- pihole/orbitalsync/.gitkeep | 0 pihole/pihole/.env.example | 1 + pihole/pihole/compose.yml | 26 ++++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 pihole/orbitalsync/.gitkeep create mode 100644 pihole/pihole/.env.example create mode 100644 pihole/pihole/compose.yml diff --git a/.gitignore b/.gitignore index 05d2329..f8298bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # Ignore everything * - # But not these directories; this allows us to look inside them !*/ @@ -10,6 +9,7 @@ !.gitignore !**/.env.example !**/Dockerfile +!**/.gitkeep # Compose names !**/compose.yml diff --git a/pihole/orbitalsync/.gitkeep b/pihole/orbitalsync/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/pihole/pihole/.env.example b/pihole/pihole/.env.example new file mode 100644 index 0000000..9e21bd4 --- /dev/null +++ b/pihole/pihole/.env.example @@ -0,0 +1 @@ +INIT_PASSWORD= \ No newline at end of file diff --git a/pihole/pihole/compose.yml b/pihole/pihole/compose.yml new file mode 100644 index 0000000..d7f015a --- /dev/null +++ b/pihole/pihole/compose.yml @@ -0,0 +1,26 @@ +services: + pihole: + image: pihole/pihole:latest + container_name: pihole + restart: unless-stopped + ports: + - "8081:80/tcp" # Pi-hole web admin interface, proxied through Caddy (configure port in Caddyfile) + # Following are NOT proxied through Caddy, bound to host net instead: + - "53:53/udp" + - "53:53/tcp" + - "853:853/tcp" # DNS-over-TLS + #- "67:67/udp" # DHCP, if desired. If not bound to host net you need an mDNS proxy service configured somewhere on host net. + # ref: https://docs.pi-hole.net/docker/DHCP/ + environment: + TZ: 'Europe/Berlin' # Supported TZ database names: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations + WEBPASSWORD: ${INIT_PASSWORD} # Only used on first boot, change with pihole cli then comment out here. + env_file: + - .env + volumes: + - './etc-pihole:/etc/pihole' + - './etc-dnsmasq.d:/etc/dnsmasq.d' + - './etc-lighttpd/external.conf:/etc/lighttpd/external.conf' # Recommend leave as bind mount for easier editing. + # ref for why you may need to change this file: https://docs.pi-hole.net/guides/webserver/caddy/#modifying-lighttpd-configuration + #cap_add: # Uncomment if using Pi-hole as DHCP server + # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities + #- NET_ADMIN # ONLY required if you are using Pi-hole as your DHCP server, else remove for better security \ No newline at end of file