-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '2'
services:
pgvector:
restart: always
image: ankane/pgvector:v0.4.4
environment:
- LC_ALL=C.UTF-8
- POSTGRES_DB=know
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- "5432"
redis:
restart: always
image: redis:alpine
know-server:
image: know-server
ports:
- "8085:80"
volumes:
- ./server:/server
#- ./files:/data/files
environment:
- FLASK_SQLALCHEMY_DATABASE_URI=postgresql://postgres:postgres@pgvector:5432/know
- FLASK_SESSION_TYPE=sqlalchemy
- FLASK_PERMANENT_SESSION_LIFETIME=86400
- FLASK_OPENAI_API_KEY=
- FLASK_OPENAI_API_BASE=https://azure.forkway.cn
# - FLASK_OPENAI_API_PROXY=
- FLASK_OPENAI_API_VERSION=2023-03-15-preview
- FLASK_SYSTEM_LOGIN_URL=http://192.168.110.226:8085/login
- FLASK_SYSTEM_URL=http://192.168.110.226:8085/api/code2session
- FLASK_UPLOAD_PATH=/data/files
- FLASK_DOMAIN=http://192.168.110.226:8085