fix gitea: remove :ro from custom mount, use inject-favicon

The :ro flag on ./gitea/custom prevented Docker from creating file
mountpoints inside it (for the CSS theme bind mount). Replace gitea
favicon/logo volume mounts with Traefik inject-favicon middleware.
This commit is contained in:
kert
2026-02-28 18:49:21 -05:00
parent 26fbd914d3
commit 12d57abb02
3 changed files with 2 additions and 5 deletions

View File

@@ -115,11 +115,8 @@ services:
volumes: volumes:
- gitea_data:/var/lib/gitea - gitea_data:/var/lib/gitea
- gitea_config:/etc/gitea - gitea_config:/etc/gitea
- ./gitea/custom:/var/lib/gitea/custom:ro - ./gitea/custom:/var/lib/gitea/custom
- ./css/gitea.css:/var/lib/gitea/custom/public/assets/css/theme-throwback.css:ro - ./css/gitea.css:/var/lib/gitea/custom/public/assets/css/theme-throwback.css:ro
- ./css/favicon.svg:/var/lib/gitea/custom/public/assets/img/favicon.svg:ro
- ./css/favicon.png:/var/lib/gitea/custom/public/assets/img/favicon.png:ro
- ./css/logo.svg:/var/lib/gitea/custom/public/assets/img/logo.svg:ro
ports: ports:
- "2222:2222" - "2222:2222"
depends_on: depends_on:

View File

@@ -15,7 +15,7 @@
{{/* ── The Reef: one router + one backend per service ───────────── */}} {{/* ── The Reef: one router + one backend per service ───────────── */}}
{{- $reef := dict {{- $reef := dict
"dashboard" (dict "port" "80" "theme" false "extra_hosts" (list $domain) "mw" "secure-headers") "dashboard" (dict "port" "80" "theme" false "extra_hosts" (list $domain) "mw" "secure-headers")
"gitea" (dict "port" "3000" "theme" false "mw" "secure-headers,rate-limit") "gitea" (dict "port" "3000" "theme" false "mw" "inject-favicon,secure-headers,rate-limit")
"woodpecker-server" (dict "port" "8000" "theme" false "subdomain" "ci" "mw" "inject-favicon,local-only,secure-headers,rate-limit") "woodpecker-server" (dict "port" "8000" "theme" false "subdomain" "ci" "mw" "inject-favicon,local-only,secure-headers,rate-limit")
"notebooks" (dict "port" "2718" "theme" false "mw" "inject-favicon,local-only,secure-headers") "notebooks" (dict "port" "2718" "theme" false "mw" "inject-favicon,local-only,secure-headers")
"zotero" (dict "port" "8080" "theme" false "mw" "inject-favicon,secure-headers") "zotero" (dict "port" "8080" "theme" false "mw" "inject-favicon,secure-headers")