-
Notifications
You must be signed in to change notification settings - Fork 49
/
docker-compose-open-webui.yml
57 lines (56 loc) · 1.34 KB
/
docker-compose-open-webui.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
53
54
55
56
57
services:
db:
image: pgvector/pgvector:pg15
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: talkdai
POSTGRES_PASSWORD: talkdai
POSTGRES_DB: talkdai
volumes:
- ./data/db:/var/lib/postgresql/data
- ./psql/db-ext-vector.sql:/docker-entrypoint-initdb.d/db-ext-vector.sql
healthcheck:
test: ["CMD", "pg_isready", "-d", "talkdai", "-U", "talkdai"]
interval: 10s
timeout: 5s
retries: 5
dialog:
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
volumes:
- ./:/app
- ./.empty:/app/data/db
- ./static:/app/static
- ./sample_data:/app/src/sample_data
ports:
- '8000:8000'
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://talkdai:talkdai@db:5432/talkdai
- STATIC_FILE_LOCATION=/app/static
env_file:
- .env
openwebui:
image: ghcr.io/open-webui/open-webui:main
ports:
- '3000:8080'
environment:
- OPENAI_API_KEYS=FAKE-KEY;
- OPENAI_API_BASE_URLS=http://dialog:8000/openai;
- ENABLE_OPENAI_API=true
volumes:
- open-webui:/app/backend/data
depends_on:
db:
condition: service_healthy
dialog:
condition: service_started
volumes:
open-webui: