doc: fix wrong port (#29)
parent
c2c075f355
commit
263eaade72
|
|
@ -5,7 +5,7 @@ When developing the backend separately, you may only need to start the backend s
|
|||
#### Pull the Docker image for the frontend service from DockerHub:
|
||||
|
||||
```Bash
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:3000 -e APP_URL=http://127.0.0.1:3000 langgenius/dify-web:latest
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 langgenius/dify-web:latest
|
||||
```
|
||||
|
||||
#### Build Docker Image from Source Code
|
||||
|
|
@ -18,7 +18,7 @@ docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0
|
|||
2. Start the frontend image
|
||||
|
||||
```
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:3000 -e APP_URL=http://127.0.0.1:3000 dify-web
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 dify-web
|
||||
```
|
||||
3. When the console domain and web app domain are different, you can set the CONSOLE_URL and APP_URL separately.
|
||||
4. To access it locally, you can visit [http://127.0.0.1:3000](http://127.0.0.1:3000/).
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#### 直接使用 DockerHub 镜像
|
||||
|
||||
```Bash
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:3000 -e APP_URL=http://127.0.0.1:3000 langgenius/dify-web:latest
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 langgenius/dify-web:latest
|
||||
```
|
||||
|
||||
#### 源码构建 Docker 镜像
|
||||
|
|
@ -18,7 +18,7 @@ docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0
|
|||
2. 启动前端镜像
|
||||
|
||||
```
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:3000 -e APP_URL=http://127.0.0.1:3000 dify-web
|
||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 dify-web
|
||||
```
|
||||
3. 当控制台域名和 Web APP 域名不一致时,可单独设置 `CONSOLE_URL` 和 `APP_URL`
|
||||
4. 本地访问 [http://127.0.0.1:3000](http://127.0.0.1:3000)
|
||||
|
|
|
|||
Loading…
Reference in New Issue