Files
mattermost-ai-bot/docker-compose-ollama.yml
tchivert 6e84e31477
build / build (push) Successful in 2m25s
use official ollama docker image
2023-09-21 21:39:27 +02:00

26 lines
746 B
YAML

# Docker compose file including an ollama container.
# You can start it with `docker-compose up -d`
# and download your model with :
# `docker compose exec ollama ollama pull <model>`
version: '3'
services:
mmai-bot:
image: git.rznet.fr/tchivert/mmai-bot
container_name: mmai-bot
restart: unless-stopped
environment:
- MATTERMOST_URL=https://mm.example.com
- MATTERMOST_PORT=443
- MATTERMOST_TOKEN=<your bot token>
- MATTERMOST_TEAM=<your mattermost team>
- OLLAMA_URL=http://ollama:11434 # You don't need to change this
- OLLAMA_MODEL=llama2
- OLLAMA_CTX_TIMEOUT=60
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
user: 1000:1000