Files
compose-anything/src/memos
2026-01-14 14:12:41 +08:00
..
2026-01-14 14:12:41 +08:00
2026-01-14 14:12:41 +08:00
2026-01-14 14:12:41 +08:00
2026-01-14 14:12:41 +08:00

Memos

English | 中文

This service deploys Memos, a privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.

Services

  • memos: The Memos note-taking service.

Configuration

  • MEMOS_VERSION: The version of the Memos image, default is 0.25.3.
  • MEMOS_PORT_OVERRIDE: The host port for Memos, default is 5230.
  • MEMOS_MODE: Server mode (dev, prod, or demo), default is prod.
  • MEMOS_ADDR: Server address, default is 0.0.0.0.
  • MEMOS_PORT: Server port inside the container, default is 5230.
  • MEMOS_DATA: Data directory path inside the container, default is /var/opt/memos.
  • MEMOS_DRIVER: Database driver (sqlite, postgres, or mysql), default is sqlite.
  • MEMOS_DSN: Database connection string (required for PostgreSQL or MySQL).
  • MEMOS_INSTANCE_URL: Public URL of your Memos instance (optional).

Volumes

  • memos_data: A volume for storing Memos data.

Usage

Quick Start with SQLite (Default)

  1. Start the service:

    docker compose up -d
    
  2. Access Memos at http://localhost:5230.

Using PostgreSQL or MySQL

To use PostgreSQL or MySQL instead of SQLite:

  1. Edit .env file and set:

    MEMOS_DRIVER=postgres  # or mysql
    MEMOS_DSN=postgres://user:password@host:port/dbname?sslmode=disable
    
  2. Start the service:

    docker compose up -d
    

First-Time Setup

After starting Memos for the first time:

  1. Open http://localhost:5230 in your browser.
  2. Create your admin account.
  3. Start taking notes!

Data Persistence

All data is stored in the memos_data volume, which persists across container restarts and upgrades.

Updates

To update Memos:

  1. Edit .env and change MEMOS_VERSION to the desired version.
  2. Restart the service:
docker compose down
docker compose pull
docker compose up -d

Official Documentation

License

Memos is licensed under the MIT License.