Files
Homelab/pihole/compose.yml
MSWS f2ab8b8346 feat: Configure reverse proxies and update Pi-hole restart policy
- Update `Caddyfile` to include reverse proxies for `git.msws.xyz` and `*.code.msws.xyz`, and adjust proxy rules
- Add auto-restart policy to Pi-hole container in `compose.yml`

[caddy/Caddyfile]
- Added a reverse proxy for `git.msws.xyz` pointing to `gitea-server-1:3000`.
- Added a reverse proxy for subdomains under `*.code.msws.xyz` pointing to `code-server:8443`.
- Adjusted general proxy rules to accommodate the new entries.
- Commented out the redirect rule for `/` to `https://msws.github.io`.
[pihole/compose.yml]
- Added a `restart: always` policy to ensure the Pi-hole container restarts automatically if it stops.
2025-03-27 22:18:33 -07:00

26 lines
595 B
YAML

services:
pihole:
container_name: pihole
image: pihole/pihole:latest
network_mode: host
restart: always
environment:
TZ: "America/Los_Angeles" # Change this to your timezone
WEBPASSWORD: ${WEB_PASSWORD} # Set the Pi-hole admin password
PIHOLE_DNS_: "1.1.1.1;1.0.0.1" # Upstream DNS (Cloudflare)
VIRTUAL_HOST: "pi.hole"
FTLCONF_webserver_port: 3141
volumes:
- etc-pihole:/etc/pihole
- etc-dnsmasq:/etc/dnsmasq.d
cap_add:
- SYS_NICE
volumes:
etc-pihole:
etc-dnsmasq:
networks:
cloudflared:
external: true