-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.38 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '2'
services:
elasticsearch:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.0
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- "9200"
- "9300"
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:es
ports:
- "8085:80"
volumes:
- ./server:/server
- ./files:/data/files
environment:
- 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_DOMAIN=http://192.168.110.81:8085
- FLASK_SYSTEM_LOGIN_URL=http://192.168.110.81:8085/login
- FLASK_SYSTEM_URL=http://192.168.110.81:8085/api/code2session
- FLASK_UPLOAD_PATH=/data/files
- FLASK_DOMAIN=http://192.168.110.81:8085
- FLASK_ES_HOST=elasticsearch
- FLASK_ES_PORT=9200
- FLASK_MAX_CONTENT_LENGTH=104867600