mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
feat: add ollama docker service
This commit is contained in:
parent
58b0fca976
commit
c5306f5157
6
docker/docker-compose.ollama.dev.yml
Normal file
6
docker/docker-compose.ollama.dev.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
ollama:
|
||||
ports:
|
||||
- "11434:11434"
|
28
docker/docker-compose.ollama.yml
Normal file
28
docker/docker-compose.ollama.yml
Normal 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:
|
Loading…
Reference in New Issue
Block a user