ollamarama-matrix-chatbot/docker-compose.yaml

35 lines
732 B
YAML
Raw Normal View History

2024-11-27 19:24:10 +00:00
services:
2024-11-27 20:38:00 +00:00
ollama:
hostname: ollama
container_name: ollama
build:
context: .
dockerfile: Dockerfile.ollama
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ./data/ollama/history:/root/.ollama
- ./data/ollama/models:/usr/share/ollama
restart: unless-stopped
2024-11-27 19:24:10 +00:00
matrix-chatbot:
container_name: matrix-chatbot
hostname: matrix-chatbot
build:
context: .
2024-11-27 20:38:00 +00:00
dockerfile: Dockerfile.chatbot
2024-11-27 19:24:10 +00:00
networks:
dockernet:
ipv4_address: 172.16.0.50
2024-11-27 20:38:00 +00:00
depends_on:
- ollama
2024-11-27 19:24:10 +00:00
volumes:
2024-11-27 20:38:00 +00:00
- ./data/chatbot/config.json:/app/config.json:ro
2024-11-27 19:24:10 +00:00
restart: unless-stopped
networks:
dockernet:
external: true