feat: add memos

This commit is contained in:
Sun-ZhenXing
2026-01-14 14:12:41 +08:00
parent 51fd7ea08b
commit b3c2708a53
6 changed files with 260 additions and 0 deletions

37
src/memos/.env.example Normal file
View File

@@ -0,0 +1,37 @@
# Memos Version
MEMOS_VERSION=0.25.3
# Server mode: dev, prod, or demo
MEMOS_MODE=prod
# Server address
MEMOS_ADDR=0.0.0.0
# Server port (inside container)
MEMOS_PORT=5230
# Port to bind to on the host machine
MEMOS_PORT_OVERRIDE=5230
# Data directory path (inside container)
MEMOS_DATA=/var/opt/memos
# Database driver: sqlite, postgres, or mysql
MEMOS_DRIVER=sqlite
# Database connection string (DSN) - required for postgres/mysql
# PostgreSQL example: postgres://user:password@host:port/dbname?sslmode=disable
# MySQL example: user:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local
# MEMOS_DSN=
# Public URL of your Memos instance (optional)
# MEMOS_INSTANCE_URL=https://memos.example.com
# Timezone
TZ=UTC
# Resource Limits
MEMOS_CPU_LIMIT=1.0
MEMOS_MEMORY_LIMIT=512M
MEMOS_CPU_RESERVATION=0.25
MEMOS_MEMORY_RESERVATION=128M