-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-build.yml
More file actions
66 lines (63 loc) · 1.52 KB
/
docker-compose-build.yml
File metadata and controls
66 lines (63 loc) · 1.52 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
name: munhelper
services:
api:
build: .
image: mahasvan/munhelper-api:latest
container_name: api
ports:
- "${API_ACCESS_PORT}:5000"
environment:
- CHAT_MODEL=${OLLAMA_MODEL}
- OLLAMA_BASE_URL=http://ollama:${OLLAMA_PORT}
- CHROMA_HOST=chromadb
- CHROMA_PORT=${CHROMA_PORT}
- CHROMA_COLLECTION=${CHROMA_COLLECTION}
- IS_CONTAINER=docker
restart: always
pull_policy: missing
depends_on:
ollama:
condition: service_healthy
chromadb:
image: chromadb/chroma:latest
environment:
- ANONYMIZED_TELEMETRY=False
# healthcheck:
# test: [ "CMD", "curl", "http://localhost:8000/api/v1", "-f" ]
# start_period: 10s
# interval: 1m
# start_interval: 1s
# timeout: 3s
# retries: 30
restart: always
volumes:
- chroma-data:/chroma/chroma
ollama:
build:
context: ./ollama
args:
OLLAMA_MODEL: ${OLLAMA_MODEL}
OLLAMA_PORT: ${OLLAMA_PORT}
image: mahasvan/munhelper-ollama:latest
container_name: ollama
healthcheck:
test: [ "CMD", "curl", "http://localhost:${OLLAMA_PORT}/", "-f" ]
start_period: 20s
interval: 1m
start_interval: 1s
timeout: 30s
retries: 5
restart: always
pull_policy: missing
frontend:
build: ./frontend
image: mahasvan/munhelper-frontend:latest
container_name: frontend
ports:
- "3000:3000"
depends_on:
- api
restart: always
pull_policy: missing
volumes:
chroma-data: