mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-01-23 02:20:20 +08:00
fix the nework error
This commit is contained in:
parent
12d76ea70e
commit
9dc768562f
7
client/compose.yaml
Normal file → Executable file
7
client/compose.yaml
Normal file → Executable file
@ -2,6 +2,7 @@ services:
|
||||
web:
|
||||
build:
|
||||
dockerfile: Dockerfile.web
|
||||
image: wiseflow/web
|
||||
ports:
|
||||
- 8090:8090
|
||||
# env_file:
|
||||
@ -9,9 +10,13 @@ services:
|
||||
volumes:
|
||||
- ./pb/pb_data:/pb/pb_data
|
||||
# - ./${PROJECT_DIR}:/pb/${PROJECT_DIR}
|
||||
|
||||
api:
|
||||
build:
|
||||
dockerfile: Dockerfile.api
|
||||
image: wiseflow/api
|
||||
tty: true
|
||||
stdin_open: true
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
@ -20,3 +25,5 @@ services:
|
||||
- ./${PROJECT_DIR}:/app/${PROJECT_DIR}
|
||||
- ${EMBEDDING_MODEL_PATH}:${EMBEDDING_MODEL_PATH}
|
||||
- ${RERANKER_MODEL_PATH}:${RERANKER_MODEL_PATH}
|
||||
depends_on:
|
||||
- web
|
3
client/env_sample
Normal file → Executable file
3
client/env_sample
Normal file → Executable file
@ -10,4 +10,5 @@ export DEVICE=''
|
||||
#**for processer**
|
||||
export PROJECT_DIR=""
|
||||
export WS_LOG="verbose"
|
||||
export PB_API_AUTH='email|password'
|
||||
export PB_API_AUTH='test@example.com|123467890'
|
||||
export PB_API_BASE='web:8090' ##可以参考https://stackoverflow.com/questions/70151702/how-to-network-2-separate-docker-containers-to-communicate-with-eachother
|
1
client/pb/README.md
Normal file → Executable file
1
client/pb/README.md
Normal file → Executable file
@ -8,5 +8,6 @@
|
||||
|
||||
```bash
|
||||
cd pb
|
||||
./pocketbase --dev admin create test@example.com 123467890 #如果没有初始账号,请用这个命令创建
|
||||
./pocketbase serve
|
||||
```
|
Loading…
Reference in New Issue
Block a user