anything-llm/docker-compose.yml
hcornet 38d19036bd
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 31s
first sync
2025-03-06 19:27:34 +01:00

66 lines
2.2 KiB
YAML

#### NETWORKS
networks:
traefik_front_network:
external: true
back_network_anythingllm:
driver: bridge
attachable: true
#### SERVICES
services:
anythingllm:
image: mintplexlabs/anythingllm
container_name: anythingllm
ports:
- "3001:3001"
networks:
- traefik_front_network
cap_add:
- SYS_ADMIN
environment:
# Adjust for your environment
- STORAGE_DIR=/app/server/storage
- JWT_SECRET="make this a large list of random numbers and letters 20+"
- LLM_PROVIDER=openai
# - LLM_PROVIDER=ollama
# - OLLAMA_BASE_PATH=http://127.0.0.1:11434
# - OLLAMA_MODEL_PREF=llama2
# - OLLAMA_MODEL_TOKEN_LIMIT=4096
- OPEN_AI_KEY=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
- OPEN_MODEL_PREF=gpt-4o-mini
- 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
# Add any other keys here for services or settings
# you can find in the docker/.env.example file
volumes:
- anythingllm_storage:/app/server/storage
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.enable=true"
- "traefik.docker.network=traefik_front_network"
## HTTP
- "traefik.http.routers.anythingllm-http.rule=Host(`anythingllm.tips-of-mine.com`)"
- "traefik.http.routers.anythingllm-http.entrypoints=http"
## HTTPS
- "traefik.http.routers.anythingllm-https.rule=Host(`anythingllm.tips-of-mine.com`)"
- "traefik.http.routers.anythingllm-https.entrypoints=https"
- "traefik.http.routers.anythingllm-https.tls=true"
- "traefik.http.routers.anythingllm.service=anythingllm-service"
## Middleware
## Service
- "traefik.http.services.anythingllm-service.loadbalancer.server.port=3001"
volumes:
anythingllm_storage:
driver: local
driver_opts:
type: none
o: bind
device: ./storage