Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
update data mounting point
steven5e84a5775933
diff --git a/Dockerfile b/Dockerfileindex 73d60c250..b9857a5d7 100644--- a/Dockerfile+++ b/Dockerfile@@ -28,9 +28,6 @@ COPY --from=backend /backend-build/memos /usr/local/memos/COPY --from=backend /backend-build/resources /usr/local/memos/resourcesCOPY --from=frontend /frontend-build/dist /usr/local/memos/web/dist-# Directory to store the data, which can be referenced as the mounting point.-RUN mkdir -p /var/opt/memos/data-CMD ["./memos"]EXPOSE 8080diff --git a/store/db.go b/store/db.goindex 4a00ae7b3..c71c8ba1a 100644--- a/store/db.go+++ b/store/db.go@@ -16,7 +16,8 @@ import (var DB *sql.DBfunc InitDBConn() {- dbFilePath := "/var/opt/memos/data/memos.db"+ // mounting point in docker is "/usr/local/memos/data"+ dbFilePath := "./data/memos.db"if _, err := os.Stat(dbFilePath); err != nil {dbFilePath = "./resources/memos.db"