-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
112 lines (98 loc) · 2.06 KB
/
compose.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
ollama:
image: ollama/ollama
volumes:
- ollama:/root/.ollama
healthcheck:
test: ollama --version || exit 1
interval: 5s
ports:
- 11434:11434
deploy:
resources:
reservations:
devices:
- driver: ${OLLAMA_GPU_DRIVER-nvidia}
count: ${OLLAMA_GPU_COUNT-1}
capabilities:
- gpu
profiles:
- basic
- rag
open-webui:
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
restart: unless-stopped
profiles:
- rag
- utils
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: langchain
depends_on:
pgvector:
condition: service_healthy
volumes:
- pgadmin-data:/var/lib/pgadmin
profiles:
- rag
pgvector:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: rag
healthcheck:
test: pg_isready -U postgres -d rag
interval: 10s
timeout: 3s
retries: 3
ports:
- 6024:5432
volumes:
- local_pgdata2:/var/lib/postgresql/data
profiles:
- rag
- utils
basic_chat:
build:
context: ./basic_chat
environment:
OLLAMA_HOST: ollama:11434
depends_on:
ollama:
condition: service_healthy
profiles:
- basic
rag_chat:
build:
context: ./rag_chat
environment:
OLLAMA_HOST: ollama:11434
DB_HOST: pgvector
DB_PORT: 5432
depends_on:
pgvector:
condition: service_healthy
ollama:
condition: service_healthy
profiles:
- rag
volumes:
local_pgdata2:
pgadmin-data:
ollama:
open-webui: