You've already forked mattermost-ai-bot
26 lines
746 B
YAML
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
|