31 lines
583 B
YAML
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'
|