-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
90 lines (82 loc) · 1.87 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
version: '3'
volumes:
psql-data:
services:
php-app:
build: ./app
image: php-rag
container_name: php-app
env_file:
- ./env
depends_on:
- postgres
- ollama-container
command: ["./wait-for-postgres.sh", "", "apache2-foreground"]
ports:
- 2037:80
networks:
app-env:
postgres:
hostname: postgres
image: ankane/pgvector
restart: always
env_file:
- ./env
volumes:
- ./script/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
app-env:
interface:
pgadmin:
image: fenglc/pgadmin4
container_name: pgadmin
env_file:
- ./env
depends_on:
- postgres
ports:
- 5050:5050
networks:
interface:
ollama-container:
image: ollama/ollama:latest
ports:
- 11438:11434
volumes:
- .:/code
- ./ollama/ollama:/root/.ollama
- ./entrypoint.sh:/entrypoint.sh
- ./app/src/.env:/.env
container_name: ollama-container
tty: true
restart: always
environment:
- OLLAMA_KEEP_ALIVE=24h
- OLLAMA_HOST=0.0.0.0
networks:
- app-env
entrypoint: ["/usr/bin/bash", "/entrypoint.sh"]
ollama-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: ollama-webui
volumes:
- ./ollama/ollama-webui:/app/backend/data
depends_on:
- ollama-container
ports:
- 8080:8080
environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models
- OLLAMA_BASE_URLS=http://host.docker.internal:7869 #comma separated ollama hosts
- ENV=dev
- WEBUI_AUTH=False
- WEBUI_NAME=valiantlynx AI
- WEBUI_URL=http://localhost:8080
- WEBUI_SECRET_KEY=t0p-s3cr3t
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
networks:
- app-env
networks:
app-env:
interface: