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.45k stars 321 forks source link

Fix failing touch command, Fix named Volume in compose file, Fix needless downloading of docker-compose #235

Closed AIndoria closed 1 year ago

AIndoria commented 1 year ago

Hello,

Currently, there are two minor issues with the deployments file:

  1. The touch command will fail as touch does not create directories. a mkdirbeforehand is necessary. However, the docker-compose.yml file simply specifies the database as
volumes:
      - db_sqlite3:/app/db.sqlite3

which would not create the necessary dbfile in the current directory, but a named volume instead - which doesn't work for this instance as compose will just throw an error (unless a volume is specified separately on root of compose file). Thus I have changed this to ./db_sqlite3. Additionally, if creating a specific directory is desired, I can modify that as well.

  1. the check for if compose is installed only takes into account if it is installed as docker-compose. However, docker compose exists and used by many (myself included). This modification checks for both, and uses the appropriate installation method to do the up -d.

Might fix https://github.com/WongSaang/chatgpt-ui/issues/146

WongSaang commented 1 year ago

Thank you for your great job