Mantle / Core /docker-compose.prod.yml
andrescastro-us's picture
add support to run ollama locally for dev support
583e2d6
Raw History Blame Contribute Delete
778 Bytes
services:
# First Ollama container (mistral)
ollama_mistral:
build:
context: .
dockerfile: docker/ollama_mistral/Dockerfile
container_name: ollama_mistral
ports:
- "11434:11434" # Expose Ollama on port 11434 for Mistral
volumes:
- ollama_mistral_models:/root/.ollama
environment:
- OLLAMA_KEEP_ALIVE=-1
- OLLAMA_NUM_PARALLEL=1
# Chainlit-based app
app:
build:
context: .
dockerfile: docker/chainlit_app/Dockerfile
container_name: chainlit_app
ports:
- "7860:7860"
environment:
- HOST=0.0.0.0
- LISTEN_PORT=7860
- OLLAMA_MISTRAL_URL=http://ollama_mistral:11434
depends_on:
- ollama_mistral
volumes:
ollama_mistral_models:
ollama_openorca_models: