-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (83 loc) · 2.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (83 loc) · 2.52 KB
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
version: '3.8'
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: openwebui
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
environment:
- ENABLE_PIPELINES=true
# Путь к pipeline-файлу (монтируется из pipelines сервиса)
- PIPELINES_URLS=https://raw.githubusercontent.com/your-repo/langflow-pipeline/main/langflow_file_pipeline.py
depends_on:
pipelines:
condition: service_started
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
pipelines:
image: ghcr.io/open-webui/pipelines:main
container_name: openwebui-pipelines
ports:
- "9099:9099"
volumes:
- pipelines:/app/pipelines
environment:
- PIPELINES_API_KEY=0p3n-w3bu!
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
langflow:
image: langflowai/langflow:latest
container_name: langflow
ports:
- "7860:7860"
depends_on:
postgres:
condition: service_healthy
environment:
# ── База данных ──
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow
# ── Хранилище файлов ──
- LANGFLOW_CONFIG_DIR=/app/langflow
# ── Аутентификация ──
# Для dev/test можно отключить авторизацию (LANGFLOW_AUTO_LOGIN=true)
# Для production — удалить AUTO_LOGIN и настроить API key
- LANGFLOW_AUTO_LOGIN=true
- LANGFLOW_SUPERUSER=admin
- LANGFLOW_SUPERUSER_PASSWORD=changeme-strong-password
# ── Лимит загрузки файлов (MB) ──
- LANGFLOW_MAX_FILE_SIZE_UPLOAD=50
# ── CORS — открыть для OpenWebUI ──
- LANGFLOW_CORS_ORIGINS=*
volumes:
- langflow-data:/app/langflow
restart: unless-stopped
postgres:
image: postgres:16
container_name: langflow-postgres
environment:
POSTGRES_USER: langflow
POSTGRES_PASSWORD: langflow
POSTGRES_DB: langflow
ports:
- "5432:5432"
volumes:
- langflow-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U langflow"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
open-webui:
driver: local
pipelines:
driver: local
langflow-data:
driver: local
langflow-postgres:
driver: local