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:
@@ -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:
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user