forked from open-webui/open-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
87 lines (82 loc) · 2.1 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
87 lines (82 loc) · 2.1 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
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
open-webui:
build:
context: .
args:
OLLAMA_BASE_URL: '/ollama'
dockerfile: Dockerfile
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-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=
- DATABASE_URL=postgresql://postgres:${WEBUI_POSTGRES_PW}@open-webui-postgres/openwebui
- ENABLE_WEBSOCKET_SUPPORT=true
- WEBSOCKET_REDIS_URL=redis://open-webui-redis:6379/0
- REDIS_URL=redis://open-webui-redis:6379/0
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
pipelines:
image: ghcr.io/open-webui/pipelines:main
container_name: open-webui-pipelines
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- pipelines:/app/pipelines/
restart: unless-stopped
postgres:
image: postgres:17-alpine
container_name: open-webui-postgres
volumes:
- postgres:/var/lib/postgresql/data
# ports:
# - "5432:5432" Expose this port if you'd like to dig around in the database
restart: unless-stopped
#shm_size: 2g
environment:
- POSTGRES_PASSWORD=${WEBUI_POSTGRES_PW}
- POSTGRES_DB=openwebui
- PGUSER=postgres
#command: -c 'shared_buffers=2GB'
healthcheck:
test:
- CMD-SHELL
- pg_isready
start_period: 5s
interval: 10s
redis:
image: redis:7-alpine
container_name: open-webui-redis
networks:
default: null
restart: unless-stopped
entrypoint:
- redis-server
- --save 60 1
healthcheck:
test:
- CMD
- redis-cli
- ping
start_period: 20s
interval: 10s
volumes:
ollama: {}
open-webui: {}
pipelines: {}
postgres: {}