Deploy Memos
Before using the one-click template, here is a minimal Docker Compose file for self-hosting Memos.
If you're new to Docker Compose, check out our guide on how to self-host a Docker Compose app. You can also browse more examples in our Docker Compose library.
Self-host Memos with Docker Compose (minimal)
services:
memos:
image: usememos/memos:latest
ports:
- "5230:5230"
environment:
MEMOS_DRIVER: mysql
MEMOS_DSN: memos:memospass@tcp(db:3306)/memos
volumes:
- memos-data:/var/opt/memos
db:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: memos
MYSQL_USER: memos
MYSQL_PASSWORD: memospass
volumes:
- dbdata:/var/lib/mysql
volumes:
memos-data:
dbdata:
Deploy Memos on Hostim.dev (One-Click)
Memos is a self-hosted, minimalist note-taking app – like a lightweight Notion or personal wiki. With Hostim.dev, you can deploy Memos with Docker, MySQL, persistent storage, and HTTPS in under a minute.
📝 Take notes. Self-host them. Share anywhere – without setting up a server.
Guest project runs for 1 hour. Log in to save and extend to 5 days.
Why Host Memos on Hostim.dev?
- One-click Docker deployment
- Built-in MySQL
- Instant HTTPS + domain
- Real-time logs & metrics
- Persistent storage for all notes
What's included
| Resource | Details |
|---|---|
| App | usememos/memos image |
| Database | MySQL (auto-provisioned) |
| Volume | /var/opt/memos |
| Domain | Free *.hostim.dev subdomain |
| SSL | Let’s Encrypt (auto-enabled) |
| Port | 5230 |
How to Deploy
- Go to your Hostim.dev dashboard.
- Click Create Project → Use a Template.
- Select Memos.
- Choose a resource plan.
- Deploy.
FAQ
Where does Memos store notes and attachments?
Everything is stored in /var/opt/memos, backed by a persistent volume.
Does Memos require MySQL?
Yes. The official image supports MySQL or SQLite; the Hostim template uses MySQL.
How do I set the database connection?
Update MEMOS_DRIVER and MEMOS_DSN under Environment Variables
if changing DB settings.
How do I back up Memos?
Back up both the storage volume and the MySQL database through the Bastion host.
How do I upload files?
Upload images or attachments directly inside the editor; files are stored in the volume.
Can I access Memos via a custom domain?
Yes. Add a domain under Networking → Domains.
How do I update Memos?
Docker: docker compose pull && docker compose up -d
Hostim.dev: redeploy the app.
Why can't I log in?
Ensure MySQL is running and the DSN is correct.
Alternatives
- Actual — lightweight personal knowledge manager
- Logseq — open-source notes with graph view
- Joplin Server — sync backend for Joplin notes
Source + Docs
- GitHub: https://github.com/usememos/memos
- Website: https://www.usememos.com
Looking for something else? Browse all templates →