updated frigate, home-assistant and traefik

This commit is contained in:
Chris Stuurman 2025-12-08 22:17:22 +02:00
parent c52df9b791
commit 0cfab2cab6
5 changed files with 21 additions and 7 deletions

View File

@ -23,11 +23,11 @@ services:
size: 1000000000 size: 1000000000
- /certs:/certs - /certs:/certs
ports: ports:
- 5000:5000 - 5000:5000 # insecure/open, no login
- 8554:8554 - 8554:8554
- 8555:8555/tcp - 8555:8555/tcp
- 8555:8555/udp - 8555:8555/udp
- 8971:8971 - 8971:8971 # secure login
environment: environment:
PUID: 1001 PUID: 1001
PGID: 10002 PGID: 10002

View File

@ -22,7 +22,7 @@ services:
# - /run/dbus:/run/dbus:ro # - /run/dbus:/run/dbus:ro
restart: unless-stopped restart: unless-stopped
env_file: .home-assistant.env env_file: .home-assistant.env
# ports: #ports:
# - 8123:8123 # - 8123:8123
networks: networks:
traefik-net: null traefik-net: null
@ -37,11 +37,11 @@ services:
- traefik.docker.network=traefik-net - traefik.docker.network=traefik-net
- traefik.http.services.${APPLICATION_NAME}-svc.loadbalancer.server.port=${WEBUI_PORT} - traefik.http.services.${APPLICATION_NAME}-svc.loadbalancer.server.port=${WEBUI_PORT}
- traefik.http.routers.${APPLICATION_NAME}-rtr.entrypoints=web - traefik.http.routers.${APPLICATION_NAME}-rtr.entrypoints=web
- traefik.http.routers.${APPLICATION_NAME}-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) - traefik.http.routers.${APPLICATION_NAME}-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)
- traefik.http.routers.${APPLICATION_NAME}-rtr.middlewares=http-mw-secureHeaders-redirect@file - traefik.http.routers.${APPLICATION_NAME}-rtr.middlewares=http-mw-secureHeaders-redirect@file
- traefik.http.routers.${APPLICATION_NAME}-rtr.service=${APPLICATION_NAME}-svc - traefik.http.routers.${APPLICATION_NAME}-rtr.service=${APPLICATION_NAME}-svc
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.entrypoints=websecure - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.entrypoints=websecure
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.middlewares=http-mw-secureHeaders@file - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.middlewares=http-mw-secureHeaders@file
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls=true - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls=true
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.options=tls-options@file - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.options=tls-options@file

View File

@ -19,3 +19,5 @@ PUID=3012
PGID=3011 PGID=3011
TZ=Africa/Johannesburg TZ=Africa/Johannesburg
PING_PORT=8083
WEBAPP_PING=traefik-ping

View File

@ -56,7 +56,7 @@ services:
app_protocol: http app_protocol: http
mode: host mode: host
# - name: "traefik" # dashboard port - use when not using labels below # - name: "traefik" # dashboard port - use when not using labels below / reverse proxy for traefik itself
# target: 8080 # target: 8080
# host_ip: 0.0.0.0 # host_ip: 0.0.0.0
# published: "8080" # published: "8080"
@ -117,6 +117,10 @@ services:
# #
# http routers # http routers
# ------------ # ------------
# http://traefik-px.sthome.org/ping
- traefik.http.routers.${APPLICATION_NAME}-ping-rtr.entrypoints=web
- traefik.http.routers.${APPLICATION_NAME}-ping-rtr.rule=Host(`${WEBAPP_PING}.${DOMAINNAME}`)&& PathPrefix(`/`)
- traefik.http.routers.${APPLICATION_NAME}-rtr.entrypoints=web - traefik.http.routers.${APPLICATION_NAME}-rtr.entrypoints=web
- traefik.http.routers.${APPLICATION_NAME}-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) - traefik.http.routers.${APPLICATION_NAME}-rtr.rule=Host(`${WEBAPP_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`) || Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)
# https://appname.domainname/ # https://appname.domainname/
@ -139,6 +143,10 @@ services:
# #
# http services # http services
# ------------- # -------------
- traefik.http.services.${APPLICATION_NAME}-ping-svc.loadbalancer.server.port=${PING_PORT}
# assign services to routers
- traefik.http.routers.${APPLICATION_NAME}-ping-rtr.service=${APPLICATION_NAME}-ping-svc
- traefik.http.routers.${APPLICATION_NAME}-rtr.service=api@internal - traefik.http.routers.${APPLICATION_NAME}-rtr.service=api@internal
- traefik.http.routers.${APPLICATION_NAME}-secure-rtr.service=api@internal - traefik.http.routers.${APPLICATION_NAME}-secure-rtr.service=api@internal
############################################################### ###############################################################

View File

@ -20,6 +20,10 @@ entryPoints:
# entrypoint: # entrypoint:
# to: websecure # to: websecure
# scheme: https # scheme: https
forwardedHeaders:
trustedIPs:
# Local IPs
- "10.0.0.20/20"
websecure: websecure:
address: ":443" address: ":443"