Code Monkey home page Code Monkey logo

Comments (5)

RaphaelPour avatar RaphaelPour commented on September 13, 2024 1

Did you create a volume within your docker setup for your data? Otherwise it's not persistent, as the docker manual states:

By default all files created inside a container are stored on a writable container layer. This means that:

  • The data doesn't persist when that container no longer exists, and it can be difficult to get the data out of the container if another process needs it.

from memos.

Kellermaan avatar Kellermaan commented on September 13, 2024 1

I used the first one. it's wired that the data are missing. But when I use the old version of image, the data are back. I'm thinking maybe there are some incompatible things happened here.

from memos.

Zeng1998 avatar Zeng1998 commented on September 13, 2024

Backup your database file so that your data is never lost.

And please provide more context or logs.

from memos.

Kellermaan avatar Kellermaan commented on September 13, 2024

I've designated the file path for the persistent files. it just didn't work.

from memos.

RaphaelPour avatar RaphaelPour commented on September 13, 2024

How do you deploy the memos container? If you do it like stated in the memos docs, your data should be persistent. As usual with docker, there are two ways: docker run and docker-compose.

docker run

docker run -d \
  --init \
  --name memos \
  --publish 5230:5230 \
  --volume ~/.memos/:/var/opt/memos \
  neosmemo/memos:stable

docker-compose

services:
  memos:
    image: neosmemo/memos:stable
    container_name: memos
    volumes:
      - ~/.memos/:/var/opt/memos
    ports:
      - 5230:5230

from memos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.