31 lines
611 B
YAML
31 lines
611 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
|
|
|
|
# Descomenta para habilitar la GPU de NVIDIA
|
|
# De lo contrario, se ejecuta solo en la CPU:
|
|
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: all
|
|
# capabilities: [gpu]
|
|
|
|
restart: always
|
|
ports:
|
|
- '11434:11434'
|