Add Ollama bot

This commit is contained in:
2024-08-18 20:16:34 +02:00
parent d59e31205b
commit 3e47d5a7ee
10 changed files with 1019 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# WORK IN PROGRESS
version: '3.8'
services:
ollama-tg:
build: .
container_name: ollama-tg
restart: on-failure
env_file:
- ./.env
ollama-api:
image: ollama/ollama:latest
container_name: ollama-server
volumes:
- ./ollama:/root/.ollama
# Uncomment to enable NVIDIA GPU
# Otherwise runs on CPU only:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
restart: always
ports:
- '11434:11434'