feat: add ollama docker service

This commit is contained in:
Mohamed Marrouchi 2024-10-21 11:49:36 +01:00
parent 58b0fca976
commit c5306f5157
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,6 @@
version: "3.9"
services:
ollama:
ports:
- "11434:11434"

View File

@ -0,0 +1,28 @@
version: "3.9"
services:
ollama:
image: ollama/ollama
container_name: ollama
volumes:
- ollama:/root/.ollama
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
restart: unless-stopped
networks:
- ollama-network
api:
networks:
- ollama-network
volumes:
ollama:
networks:
ollama-network: