You've already forked Curso-lenguaje-python
Add Ollama bot
This commit is contained in:
30
catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml
Normal file
30
catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml
Normal 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'
|
||||
Reference in New Issue
Block a user