mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
- 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.
26 lines
595 B
YAML
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
|