Curso-lenguaje-python/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml

31 lines
611 B
YAML
Raw Normal View History

2024-08-18 20:16:34 +02:00
# 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
2024-08-18 20:18:59 +02:00
# Descomenta para habilitar la GPU de NVIDIA
# De lo contrario, se ejecuta solo en la CPU:
2024-08-18 20:16:34 +02:00
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
restart: always
ports:
- '11434:11434'