docs: fix docker port to private (#802)
This commit is contained in:
parent
5fee11323b
commit
e55fc06686
|
@ -185,10 +185,10 @@ pnpm dev
|
||||||
docker build -t chatgpt-web .
|
docker build -t chatgpt-web .
|
||||||
|
|
||||||
# foreground operation
|
# 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
|
# 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
|
# running address
|
||||||
http://localhost:3002/
|
http://localhost:3002/
|
||||||
|
@ -205,7 +205,7 @@ services:
|
||||||
app:
|
app:
|
||||||
image: chenzhaoyu94/chatgpt-web # always use latest, pull the tag image again when updating
|
image: chenzhaoyu94/chatgpt-web # always use latest, pull the tag image again when updating
|
||||||
ports:
|
ports:
|
||||||
- 3002:3002
|
- 127.0.0.1:3002:3002
|
||||||
environment:
|
environment:
|
||||||
# one of two
|
# one of two
|
||||||
OPENAI_API_KEY: xxxxxx
|
OPENAI_API_KEY: xxxxxx
|
||||||
|
|
|
@ -191,10 +191,10 @@ pnpm dev
|
||||||
docker build -t chatgpt-web .
|
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/
|
http://localhost:3002/
|
||||||
|
@ -211,7 +211,7 @@ services:
|
||||||
app:
|
app:
|
||||||
image: chenzhaoyu94/chatgpt-web # 总是使用 latest ,更新时重新 pull 该 tag 镜像即可
|
image: chenzhaoyu94/chatgpt-web # 总是使用 latest ,更新时重新 pull 该 tag 镜像即可
|
||||||
ports:
|
ports:
|
||||||
- 3002:3002
|
- 127.0.0.1:3002:3002
|
||||||
environment:
|
environment:
|
||||||
# 二选一
|
# 二选一
|
||||||
OPENAI_API_KEY: sk-xxx
|
OPENAI_API_KEY: sk-xxx
|
||||||
|
|
Loading…
Reference in New Issue