-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
91 lines (84 loc) · 2.14 KB
/
docker-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
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
deploy:
resources:
reservations:
devices:
- driver: ${GPU_DRIVER-nvidia}
count: all
capabilities:
- gpu
open-webui:
pull_policy: always
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
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='
- 'OPENAI_API_BASE_URL=http://pipelines:9099'
- 'OPENAI_API_KEY=0p3n-w3bu!'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
pipelines:
pull_policy: always
image: ghcr.io/open-webui/pipelines:main
container_name: pipelines
volumes:
- pipelines:/app/pipelines
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
ports:
- 9099:9099
depends_on:
- langfuse
langfuse:
image: langfuse/langfuse:latest
depends_on:
langfuse-db:
condition: service_healthy
ports:
- "4000:4000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@langfuse-db:5432/postgres
- NEXTAUTH_SECRET=mysecret
- SALT=mysalt
- NEXTAUTH_URL=http://localhost:4000
- TELEMETRY_ENABLED=${TELEMETRY_ENABLED:-true}
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=${LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES:-false}
- PORT=4000
langfuse-db:
image: postgres
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- 5432:5432
volumes:
- langfuse_database_data:/var/lib/postgresql/data
volumes:
ollama: {}
open-webui: {}
pipelines: {}
langfuse_database_data: {}