App template
Memos
A note-taking app with SQLite on a volume and an admin account ready.
- Memory when idle
- about 20 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
Memos is a note-taking app for short notes, with tags, search and an API. It keeps your notes on your own server.
This template runs one Memos instance behind your domain. It stores data in SQLite on a 10 GiB volume. Sign-up is off, and an administrator account named admin is created at the first start.
Values you provide
You don’t fill in anything when you deploy.
Made for you
These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.
- memos-secrets/admin-password
Getting started
-
In Zeabur OSS, open the
memosservice. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains. It is the domain you entered in the install form, for examplememos.example.com. -
Sign in as
admin. Get the password from thememosservice: open Variables, clickmemos-secretsunder From config files and secrets, and click the eye icon next toadmin-password. Without Zeabur OSS, read Secretmemos-secrets, keyadmin-password, with kubectl:kubectl -n <namespace> get secret memos-secrets -o jsonpath='{.data.admin-password}' | base64 -d -
Change the password in Memos after you sign in. Memos reads the Secret only when it creates the account, so a later change to the Secret does not change the password.
-
Sign-up is off. Create other accounts as
adminin the Memos settings.
Configuration
Create a personal access token
Create a token in your user settings in Memos, then send it as a Bearer token. Tokens start with memos_pat_, and Memos shows the value only once. Use one token for each app, so you can revoke one without breaking the others.
curl -H "Authorization: Bearer memos_pat_..." https://memos.example.com/api/memos
See API Access in the Memos docs.
Troubleshooting
The page shows 502 or does not load
Open the memos service in Zeabur OSS. Check that Overview shows its replica as ready, then read the Logs tab. If the replica is not ready, open Deployments and switch to Events. If Events show OOMKilled, the service ran out of memory. Raise Maximum memory under Settings → Compute. If the domain or the certificate stays pending, see Troubleshooting on the domains page.
See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal in the Zeabur OSS docs.
A setting is read-only or cannot be saved
Memos makes every setting group that a configuration file declares read-only in the app and the API. The template declares the General group in ConfigMap memos-config, which includes the sign-up rule and the custom profile. Memos treats the file as the whole group, so a field you leave out returns to its default. To change these settings, open the project’s Objects page, open ConfigMap memos-config, switch to the YAML view, click Edit, change the values, then review and apply. Memos reads the file at start, so click Restart at the top of the memos service page.
See Declarative configuration in the Memos docs.
Sign-in fails
Memos treats user names as case-sensitive, so type admin in lower case. See Troubleshooting in the Memos docs.
Resources
Each service is guaranteed the first amount and can use up to the second.
memos
Ports
5230
CPU
0.05 cores to 1 core
Memory
128 MiB to 512 MiB
Technical details
This release
- Version
- 26.11.0
- Licence
- MIT
- Homepage
- usememos.com
- Source file
- templates/memos/template.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 16 MiB |
Security
The container runs as UID 10001 with a read-only filesystem, no Kubernetes token and all extra system privileges removed. Outbound traffic is not limited. Public sign-up is off.
Known risks
Risk
On an empty instance, the first account created becomes the administrator.
How it is handled
The memos-config ConfigMap declares the account admin with the generated password, and Memos creates it at startup before it serves any request. If the configuration cannot be applied, Memos exits and the Pod receives no traffic.
Risk
Anyone could register an account.
How it is handled
The memos-config ConfigMap turns on disallowUserRegistration. The administrator creates accounts in Settings. This ConfigMap controls the general settings, so to change them, edit the ConfigMap and restart the Pod.
Risk
Webhooks and link previews make the server request addresses that users choose.
How it is handled
Memos blocks private webhook targets by default. The template does not limit outbound traffic. To limit it, add an egress NetworkPolicy (a rule that limits outbound traffic).
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.