From c21e325410f7a9bae335582a353af5be96ace07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=86=E5=A4=A9=E8=A5=BF=E7=93=9C?= Date: Thu, 23 Mar 2023 10:25:06 +0800 Subject: [PATCH] fix docker port to private --- 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 538b27ebec..555ec7d113 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 9b6880b958..f0cdc6b7fd 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