Spaces:
Running
Running
Add AnythingLLM Docker configuration
Browse files- Dockerfile +37 -11
- README.md +5 -0
Dockerfile
CHANGED
@@ -1,12 +1,38 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
# Set the command to run your app
|
12 |
-
CMD ["node", "server/index.js"]
|
|
|
1 |
+
version: '3.8'
|
2 |
+
services:
|
3 |
+
anythingllm:
|
4 |
+
image: mintplexlabs/anythingllm
|
5 |
+
container_name: anythingllm
|
6 |
+
ports:
|
7 |
+
- "7860:7860"
|
8 |
+
cap_add:
|
9 |
+
- SYS_ADMIN
|
10 |
+
environment:
|
11 |
+
# Adjust for your environment
|
12 |
+
- STORAGE_DIR=/app/server/storage
|
13 |
+
- JWT_SECRET="make this a large list of random numbers and letters 20+"
|
14 |
+
- LLM_PROVIDER=ollama
|
15 |
+
- OLLAMA_BASE_PATH=http://127.0.0.1:11434
|
16 |
+
- OLLAMA_MODEL_PREF=llama2
|
17 |
+
- OLLAMA_MODEL_TOKEN_LIMIT=4096
|
18 |
+
- EMBEDDING_ENGINE=ollama
|
19 |
+
- EMBEDDING_BASE_PATH=http://127.0.0.1:11434
|
20 |
+
- EMBEDDING_MODEL_PREF=nomic-embed-text:latest
|
21 |
+
- EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
|
22 |
+
- VECTOR_DB=lancedb
|
23 |
+
- WHISPER_PROVIDER=local
|
24 |
+
- TTS_PROVIDER=native
|
25 |
+
- PASSWORDMINCHAR=8
|
26 |
+
# Add any other keys here for services or settings
|
27 |
+
# you can find in the docker/.env.example file
|
28 |
+
volumes:
|
29 |
+
- anythingllm_storage:/app/server/storage
|
30 |
+
restart: always
|
31 |
|
32 |
+
volumes:
|
33 |
+
anythingllm_storage:
|
34 |
+
driver: local
|
35 |
+
driver_opts:
|
36 |
+
type: none
|
37 |
+
o: bind
|
38 |
+
device: /path/on/local/disk
|
|
|
|
|
|
README.md
CHANGED
@@ -8,3 +8,8 @@ pinned: false
|
|
8 |
---
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
11 |
+
|
12 |
+
|
13 |
+
git add .
|
14 |
+
git commit -m "Add AnythingLLM Docker configuration"
|
15 |
+
git push
|