-
-
Notifications
You must be signed in to change notification settings - Fork 370
/
Copy pathdocker-compose.yaml
72 lines (66 loc) · 1.46 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
version: '3.7'
services:
backend:
image: nilsherzig/llocalsearch-backend:latest
environment:
- OLLAMA_HOST=${OLLAMA_HOST:-host.docker.internal:11434}
- CHROMA_DB_URL=${CHROMA_DB_URL:-http://chromadb:8000}
- SEARXNG_DOMAIN=${SEARXNG_DOMAIN:-http://searxng:8080}
- EMBEDDINGS_MODEL_NAME=${EMBEDDINGS_MODEL_NAME:-nomic-embed-text:v1.5}
networks:
- llm_network
extra_hosts:
- 'host.docker.internal:host-gateway'
frontend:
depends_on:
- backend
image: nilsherzig/llocalsearch-frontend:latest
ports:
- '3000:80'
networks:
- llm_network
chromadb:
image: chromadb/chroma
networks:
- llm_network
redis:
image: docker.io/library/redis:alpine
command: redis-server --save 30 1 --loglevel warning
networks:
- searxng
volumes:
- redis-data:/data
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
searxng:
image: docker.io/searxng/searxng:latest
networks:
- searxng
- llm_network
volumes:
- ./searxng:/etc/searxng:rw
environment:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '1'
networks:
llm_network:
driver: bridge
searxng:
ipam:
driver: default
volumes:
redis-data: