WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.51k stars 333 forks source link

added persistent database volume in default docker compose #192

Closed FarisHijazi closed 1 year ago

FarisHijazi commented 1 year ago

After a week of trying to get the persistent storage to work, I finally found a way. This change simply adds a volume in the docker compose.


   volumes:
     - ./db_sqlite3/db.sqlite3:/app/db.sqlite3
  ```

it's also necessary to create the db.sqlite3 file, that's why I added `touch ./db_sqlite3/db.sqlite3` in the deployment.sh

You might also want to mention that in the README.md (the `touch` part)

please make this the default, I keep seeing so many issues in this repository of people asking how to make it work, I hope this helps

and have a good day
WongSaang commented 1 year ago

Thank you very much