chore: update readme

This commit is contained in:
Tianzhou Chen
2023-12-17 21:25:06 +08:00
parent 42bad976a4
commit 8d02dba90e

View File

@ -50,9 +50,13 @@ See [SQL Chat Privacy Policy](https://sqlchat.ai/privacy).
### Docker
```bash
docker run --name sqlchat --platform linux/amd64 -env NEXTAUTH_SECRET=xxx -p 3000:3000 sqlchat/sqlchat
docker run --name sqlchat --platform linux/amd64 --env NEXTAUTH_SECRET="$(openssl rand -hex 5)" -p 3000:3000 --hostname localhost sqlchat/sqlchat
```
* Pass an arbitrary string to NEXTAUTH_SECRET otherwise next-auth will complain. It doesn't matter
if you don't enable login.
* If you connect to the database on the same host, you need to use `host.docker.internal` as the host name.
### Startup options
* Run without database, check [.env.no-db](https://github.com/sqlchat/sqlchat/blob/main/.env.no-db).