add pihole and placeholder for orbitalsync

This commit is contained in:
Mika Bomm 2025-01-02 19:08:57 +01:00
parent c113429c48
commit 2ff7948f55
4 changed files with 28 additions and 1 deletions

2
.gitignore vendored
View file

@ -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

View file

View file

@ -0,0 +1 @@
INIT_PASSWORD=

26
pihole/pihole/compose.yml Normal file
View file

@ -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