added uptime-kuma and script to allow INPUT rules to access lan from containers

This commit is contained in:
2026-03-26 18:55:20 +01:00
parent 99a7a1f86a
commit 9155a817f2
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
services:
uptime-kuma:
image: louislam/uptime-kuma:2
restart: unless-stopped
volumes:
- /srv/uptime-kuma/data:/app/data
networks:
- proxy
dns:
- 192.168.8.2
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.kuma.rule=Host(`kuma.schork.ch`)"
- "traefik.http.routers.kuma.entrypoints=websecure"
- "traefik.http.routers.kuma.tls=true"
- "traefik.http.services.kuma.loadbalancer.server.port=3001"
# ports:
# # <Host Port>:<Container Port>
# - "3001:3001"
networks:
proxy:
external: true

4
scripts/ufw.txt Normal file
View File

@@ -0,0 +1,4 @@
#allow docker bridge to enter back to the lan network (split-dns monitoring via uptime kuma)
ufw allow proto tcp from 172.21.0.0/16 to 192.168.8.93 port 443
ufw allow proto tcp from 172.21.0.0/16 to 192.168.8.93 port 80