mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-23 18:43:18 +08:00
chore: update readme
This commit is contained in:
20
README.md
20
README.md
@ -34,7 +34,7 @@ SQL Chat is built by [Next.js](https://nextjs.org/), it supports the following d
|
|||||||
- MSSQL
|
- MSSQL
|
||||||
- TiDB Cloud
|
- TiDB Cloud
|
||||||
|
|
||||||
## [sqlchat.ai](https://sqlchat.ai)
|
## [sqlchat.ai](https://sqlchat.ai)
|
||||||
|
|
||||||
### IP Whitelisting
|
### IP Whitelisting
|
||||||
|
|
||||||
@ -50,22 +50,22 @@ See [SQL Chat Privacy Policy](https://sqlchat.ai/privacy).
|
|||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name sqlchat --platform linux/amd64 --env NEXTAUTH_SECRET="$(openssl rand -hex 5)" -p 3000:3000 --hostname localhost sqlchat/sqlchat
|
docker run --name sqlchat --platform linux/amd64 --env NEXTAUTH_SECRET="$(openssl rand -hex 5)" --env OPENAI_API_KEY=<<YOUR OPENAI KEY>> -p 3000:3000 --hostname localhost sqlchat/sqlchat
|
||||||
```
|
```
|
||||||
|
|
||||||
* Pass an arbitrary string to NEXTAUTH_SECRET otherwise next-auth will complain. It doesn't matter
|
- Pass an arbitrary string to NEXTAUTH_SECRET otherwise next-auth will complain. It doesn't matter
|
||||||
if you don't enable login.
|
if you don't enable login.
|
||||||
* If you chat to the database on the same host, you need to use `host.docker.internal` as the host in
|
- If you chat to the database on the same host, you need to use `host.docker.internal` as the host in
|
||||||
the database connection setting.
|
the database connection setting.
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/sqlchat/sqlchat/main/docs/docker-connection-setting.webp" />
|
<img src="https://raw.githubusercontent.com/sqlchat/sqlchat/main/docs/docker-connection-setting.webp" />
|
||||||
|
|
||||||
## Startup options
|
## Startup options
|
||||||
|
|
||||||
* Run without database, check [.env.nodb](https://github.com/sqlchat/sqlchat/blob/main/.env.nodb).
|
- Run without database, check [.env.nodb](https://github.com/sqlchat/sqlchat/blob/main/.env.nodb).
|
||||||
This is suitable if you just want to use for yourself.
|
This is suitable if you just want to use for yourself.
|
||||||
* Run with database, check [.env.usedb](https://github.com/sqlchat/sqlchat/blob/main/.env.usedb).
|
- Run with database, check [.env.usedb](https://github.com/sqlchat/sqlchat/blob/main/.env.usedb).
|
||||||
This is suitable if you want to run a similar multi-tenant service as [sqlchat.ai](https://sqlchat.ai) where you need manage account, usage and etc.
|
This is suitable if you want to run a similar multi-tenant service as [sqlchat.ai](https://sqlchat.ai) where you need manage account, usage and etc.
|
||||||
|
|
||||||
### OpenAI related
|
### OpenAI related
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user