This commit is contained in:
pixel
2025-11-05 14:43:57 +01:00
commit 3ebaf94467
3 changed files with 58 additions and 0 deletions

8
lab2-web-proxy/Caddyfile Normal file
View File

@@ -0,0 +1,8 @@
# Ersetze example.com durch deine Domain
git.pxsw.de {
reverse_proxy localhost:3000
}
woodpacker.pxsw.de {
reverse_proxy localhost:9001
}

View File

@@ -0,0 +1,20 @@
version: "3.9"
services:
caddy:
image: caddy:2
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data # speichert Zertifikate & ACME-Daten
- caddy_config:/config
depends_on:
- app
volumes:
caddy_data:
caddy_config:

View File

@@ -0,0 +1,30 @@
version: "3.9"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
network_mode: "host" # nötig für DHCP (Port 67/UDP)
cap_add:
- NET_ADMIN # erlaubt DHCP
restart: unless-stopped
environment:
TZ: "Europe/Berlin"
WEBPASSWORD: "Milchtaube05"
PIHOLE_DNS_: "1.1.1.1;1.0.0.1"
DNSMASQ_LISTENING: "all"
# DHCP einschalten (Bereich an dein Netz anpassen)
DHCP_ACTIVE: "true"
DHCP_START: "192.168.1.100"
DHCP_END: "192.168.1.200"
DHCP_ROUTER: "192.168.1.1"
DHCP_LEASETIME: "24"
FTLCONF_LOCAL_IPV4: "192.168.1.10" # IP des Hosts im LAN
volumes:
- ./etc-pihole:/etc/pihole
- ./etc-dnsmasq.d:/etc/dnsmasq.d
healthcheck:
test: ["CMD-SHELL", "dig +short @127.0.0.1 pi.hole || exit 1"]
interval: 1m
timeout: 10s
retries: 3