-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 823 Bytes
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
version: '3.9'
services:
ollama:
image: ollama/ollama:latest
container_name: ollama_python
ports:
- "11434:11434"
environment:
- OLLAMA_MODELS_PATH=/models
volumes:
- ollama_models:/models
python_ai_proxy:
build:
context: .
dockerfile: Dockerfile
container_name: python_ai_proxy
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- ollama
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: openwebui_python
ports:
- "8080:8080"
environment:
- OLLAMA_API_BASE_URL=http://python_ai_proxy:8000
- OLLAMA_BASE_URL=http://python_ai_proxy:8000
depends_on:
- python_ai_proxy
volumes:
- openwebui_data:/app/backend/data
volumes:
ollama_models:
openwebui_data: