mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
Update HOW_TO_USE_DOCKER.md (#1697)
format Markdown / YAML code snippet
This commit is contained in:
parent
172543e1cd
commit
65093d99d8
@ -87,46 +87,51 @@ mintplexlabs/anythingllm;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Docker Compose</td>
|
||||
<td>
|
||||
version: '3.8'
|
||||
services:
|
||||
anythingllm:
|
||||
image: mintplexlabs/anythingllm
|
||||
container_name: anythingllm
|
||||
ports:
|
||||
- "3001:3001"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
environment:
|
||||
# Adjust for your environemnt
|
||||
- STORAGE_DIR=/app/server/storage
|
||||
- JWT_SECRET="make this a large list of random numbers and letters 20+"
|
||||
- LLM_PROVIDER=ollama
|
||||
- OLLAMA_BASE_PATH=http://127.0.0.1:11434
|
||||
- OLLAMA_MODEL_PREF=llama2
|
||||
- OLLAMA_MODEL_TOKEN_LIMIT=4096
|
||||
- EMBEDDING_ENGINE=ollama
|
||||
- EMBEDDING_BASE_PATH=http://127.0.0.1:11434
|
||||
- EMBEDDING_MODEL_PREF=nomic-embed-text:latest
|
||||
- EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
|
||||
- VECTOR_DB=lancedb
|
||||
- WHISPER_PROVIDER=local
|
||||
- TTS_PROVIDER=native
|
||||
- PASSWORDMINCHAR=8
|
||||
- AGENT_SERPER_DEV_KEY="SERPER DEV API KEY"
|
||||
- AGENT_SERPLY_API_KEY="Serply.io API KEY"
|
||||
volumes:
|
||||
- anythingllm_storage:/app/server/storage
|
||||
restart: always
|
||||
<td> Docker Compose</td>
|
||||
<td>
|
||||
|
||||
|
||||
```yaml
|
||||
version: '3.8'
|
||||
services:
|
||||
anythingllm:
|
||||
image: mintplexlabs/anythingllm
|
||||
container_name: anythingllm
|
||||
ports:
|
||||
- "3001:3001"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
environment:
|
||||
# Adjust for your environemnt
|
||||
- STORAGE_DIR=/app/server/storage
|
||||
- JWT_SECRET="make this a large list of random numbers and letters 20+"
|
||||
- LLM_PROVIDER=ollama
|
||||
- OLLAMA_BASE_PATH=http://127.0.0.1:11434
|
||||
- OLLAMA_MODEL_PREF=llama2
|
||||
- OLLAMA_MODEL_TOKEN_LIMIT=4096
|
||||
- EMBEDDING_ENGINE=ollama
|
||||
- EMBEDDING_BASE_PATH=http://127.0.0.1:11434
|
||||
- EMBEDDING_MODEL_PREF=nomic-embed-text:latest
|
||||
- EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
|
||||
- VECTOR_DB=lancedb
|
||||
- WHISPER_PROVIDER=local
|
||||
- TTS_PROVIDER=native
|
||||
- PASSWORDMINCHAR=8
|
||||
- AGENT_SERPER_DEV_KEY="SERPER DEV API KEY"
|
||||
- AGENT_SERPLY_API_KEY="Serply.io API KEY"
|
||||
volumes:
|
||||
- anythingllm_storage:/app/server/storage
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
anythingllm_storage:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /path/on/local/disk
|
||||
```
|
||||
|
||||
volumes:
|
||||
anythingllm_storage:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /path/on/local/disk
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user