forked from Avaiga/demo-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
93 lines (85 loc) · 2.04 KB
/
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
91
92
93
services:
# web:
# build: .
# container_name: demo-chatbot
# ports:
# - '5000:5000'
# volumes:
# - .:/app
# restart: "on-failure"
# environment:
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# command: ["taipy", "run", "--no-debug", "--no-reloader", "main.py", "-H", "0.0.0.0", "-P", "5000"]
# depends_on:
# - ollama
# # - ollama_init
ollama:
image: ollama/ollama
volumes:
- ./data/ollama:/root/.ollama
ports:
- 11434:11434
# redis-vecdb:
# image: redis/redis-stack:latest
# ports:
# - "6379:6379"
# - "8001:8001"
# volumes:
# - ./data/redis_data:/data
chromadb-vecdb:
image: chromadb/chroma:latest
volumes:
- ./chromadb:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=/chroma/chroma # this is the default path, change it as needed
- ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-TRUE}
ports:
- 8000:8000
jupyter:
image: jupyter/minimal-notebook:latest
container_name: jupyter
volumes:
- .:/home/jovyan/work
- ./jupyter:/home/jovyan/.jupyter
ports:
- 8888:8888
depends_on:
# - "redis-vecdb"
- "ollama"
- "chromadb-vecdb"
environment:
JUPYTER_ENABLE_LAB: "yes"
JUPYTER_PASSWORD: ""
# JUPYTER_TOKEN: "" # Set an empty token to disable password
# streamlit_app:
# build:
# dockerfile: ./app/Dockerfile
# context: ./
# ports:
# - '8501:8501'
# volumes:
# - './app:/app'
# # - './utils:/app'
gradio_app:
build:
dockerfile: ./gradio-app/Dockerfile
context: ./
ports:
- '7860:7860'
volumes:
- './gradio-app:/usr/src/app'
depends_on:
- "ollama"
- "chromadb-vecdb"
# - "vec_db_init"
# vec_db_init:
# build:
# dockerfile: ./vec_store/Dockerfile
# context: ./
# volumes:
# - ./vec_store:/app
# restart: "on-failure"
# depends_on:
# - "ollama"
# - "chromadb-vecdb"