From 8d02dba90ebc78850f8fbaeedf33de9bc62a847d Mon Sep 17 00:00:00 2001 From: Tianzhou Chen Date: Sun, 17 Dec 2023 21:25:06 +0800 Subject: [PATCH] chore: update readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0412881..9093e66 100644 --- a/README.md +++ b/README.md @@ -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).