Curso-lenguaje-python/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml
2024-08-18 20:16:34 +02:00

31 lines
583 B
YAML

# 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'