Skip to content

MEMOS_* Environment Variables do not work #5219

@chaoslion

Description

@chaoslion

Describe the bug

When using the default compose configuration as shown here:
https://usememos.com/docs/configuration/storage#docker-configuration

the storage type and path will not be set and memo falls back to using the database storage.

Steps to reproduce

services:
  memos:
    image: neosmemo/memos:stable
    environment:
      - MEMOS_STORAGE_TYPE=local
      - MEMOS_STORAGE_PATH=assets/{year}/{month}/{timestamp}_{filename}
      - MEMOS_MAX_FILE_SIZE=10485760
    volumes:
      - ./memos-data:/var/opt/memos
    ports:
      - "5230:5230"
docker compose up
memos-1  | 2025/11/04 13:42:47 INFO initializing new database with latest schema file=migration/sqlite/LATEST.sql
memos-1  | 2025/11/04 13:42:47 INFO database initialized successfully schemaVersion=0.25.1
memos-1  | Memos 0.25.2 started successfully!
memos-1  | Data directory: /var/opt/memos
memos-1  | Database driver: sqlite
memos-1  | Mode: prod
memos-1  | 2025/11/04 13:42:47 INFO background runners started goroutines=18
memos-1  | Server running on port 5230
memos-1  | Access your memos at: http://localhost:5230
memos-1  |
memos-1  | Documentation: https://usememos.com
memos-1  | Source code: https://github.com/usememos/memos
memos-1  |
memos-1  | Happy note-taking!

The version of Memos you're using

v0.25.2

Screenshots or additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions