ollamarama-matrix-chatbot/docker-compose.yaml

37 lines
756 B
YAML
Raw Permalink Normal View History

2024-11-27 19:24:10 +00:00
services:
2024-11-27 20:38:00 +00:00
ollama:
2024-11-27 20:53:36 +00:00
image: ollama/ollama
2024-11-27 20:38:00 +00:00
build:
context: .
dockerfile: Dockerfile.ollama
2024-11-27 20:53:36 +00:00
hostname: ollama
2024-11-27 20:38:00 +00:00
container_name: ollama
2024-11-27 21:45:27 +00:00
networks:
dockernet:
ipv4_address: 172.16.0.51
2024-11-27 20:38:00 +00:00
ports:
- "11434:11434"
volumes:
- ./data/ollama/history:/root/.ollama
restart: unless-stopped
2024-11-27 19:24:10 +00:00
matrix-chatbot:
2024-11-27 20:53:36 +00:00
image: matrix-chatbot:latest
2024-11-27 19:24:10 +00:00
build:
context: .
2024-11-27 20:38:00 +00:00
dockerfile: Dockerfile.chatbot
2024-11-27 20:53:36 +00:00
container_name: matrix-chatbot
hostname: matrix-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