diff --git a/charts/memos/Chart.yaml b/charts/memos/Chart.yaml
index 4a57c1452..4f810e5e5 100644
--- a/charts/memos/Chart.yaml
+++ b/charts/memos/Chart.yaml
@@ -4,7 +4,7 @@ description: A lightweight, self-hosted memo hub. Open Source and Free forever.
home: https://charts.gabe565.com/charts/memos/
icon: https://raw.githubusercontent.com/gabe565/charts/main/charts/memos/icon.png
type: application
-version: 0.5.1
+version: 0.5.2
# renovate datasource=docker depName=ghcr.io/usememos/memos
appVersion: 0.13.1
kubeVersion: ">=1.22.0-0"
@@ -20,8 +20,8 @@ sources:
- https://github.com/usememos/memos
annotations:
artifacthub.io/changes: |-
- - kind: changed
- description: Update ghcr.io/usememos/memos Docker tag to v0.13.1
+ - kind: fixed
+ description: Set `MEMOS_PORT` to fix startup failures
artifacthub.io/links: |-
- name: App Source
url: https://github.com/usememos/memos
diff --git a/charts/memos/README.md b/charts/memos/README.md
index 6f115dcd6..9c2c24fb1 100644
--- a/charts/memos/README.md
+++ b/charts/memos/README.md
@@ -2,7 +2,7 @@
-![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat)
+![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat)
![AppVersion: 0.13.1](https://img.shields.io/badge/AppVersion-0.13.1-informational?style=flat)
@@ -11,7 +11,7 @@ A lightweight, self-hosted memo hub. Open Source and Free forever.
**Homepage:**
**This chart is not maintained by the upstream project and any issues with the chart should be raised
-[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.5.1)**
+[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.5.2)**
## Source Code
diff --git a/charts/memos/templates/common.yaml b/charts/memos/templates/common.yaml
index 6eb9b68ff..a444608b2 100644
--- a/charts/memos/templates/common.yaml
+++ b/charts/memos/templates/common.yaml
@@ -1 +1,9 @@
+{{/* Append the hardcoded settings */}}
+{{- define "memos.harcodedValues" -}}
+env:
+ MEMOS_PORT: {{ .Values.service.main.ports.http.port }}
+{{- end -}}
+{{- $_ := merge .Values (include "memos.harcodedValues" . | fromYaml) -}}
+
+{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}