From e55fc06686c6ea2309bef4c7030cdb37922480b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E5=AD=90?= <16423601+kilvn@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:56:52 +0800 Subject: [PATCH] docs: fix docker port to private (#802) --- README.en.md | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.en.md b/README.en.md index 538b27e..555ec7d 100644 --- a/README.en.md +++ b/README.en.md @@ -185,10 +185,10 @@ pnpm dev docker build -t chatgpt-web . # foreground operation -docker run --name chatgpt-web --rm -it -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web +docker run --name chatgpt-web --rm -it -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web # background operation -docker run --name chatgpt-web -d -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web +docker run --name chatgpt-web -d -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web # running address http://localhost:3002/ @@ -205,7 +205,7 @@ services: app: image: chenzhaoyu94/chatgpt-web # always use latest, pull the tag image again when updating ports: - - 3002:3002 + - 127.0.0.1:3002:3002 environment: # one of two OPENAI_API_KEY: xxxxxx diff --git a/README.md b/README.md index 9b6880b..f0cdc6b 100644 --- a/README.md +++ b/README.md @@ -191,10 +191,10 @@ pnpm dev docker build -t chatgpt-web . # 前台运行 -docker run --name chatgpt-web --rm -it -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web +docker run --name chatgpt-web --rm -it -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web # 后台运行 -docker run --name chatgpt-web -d -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web +docker run --name chatgpt-web -d -p 127.0.0.1:3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web # 运行地址 http://localhost:3002/ @@ -211,7 +211,7 @@ services: app: image: chenzhaoyu94/chatgpt-web # 总是使用 latest ,更新时重新 pull 该 tag 镜像即可 ports: - - 3002:3002 + - 127.0.0.1:3002:3002 environment: # 二选一 OPENAI_API_KEY: sk-xxx