-
-
Notifications
You must be signed in to change notification settings - Fork 362
/
docker-compose.dev.yaml
87 lines (81 loc) · 1.74 KB
/
docker-compose.dev.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
version: '3.7'
services:
backend:
volumes:
- ./backend/:/app/
- /home/nils/Notes/:/localfiles/:ro
build:
context: ./backend
dockerfile: Dockerfile.dev
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}
- VERSION=${VERSION:-dev}
networks:
- llm_network_dev
extra_hosts:
- 'host.docker.internal:host-gateway'
frontend:
depends_on:
- backend
build:
context: .
dockerfile: Dockerfile.dev
environment:
- PUBLIC_VERSION=dev
volumes:
- ./:/app/
ports:
- '3000:5173'
networks:
- llm_network_dev
chromadb:
image: chromadb/chroma
networks:
- llm_network_dev
# attach: false
# logging:
# driver: none
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_dev
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_dev:
driver: bridge
searxng:
ipam:
driver: default
volumes:
redis-data: