mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
build
This commit is contained in:
24
__swarm/ollama/ollama-swarm.yml
Normal file
24
__swarm/ollama/ollama-swarm.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
ollama:
|
||||
image: ${DOCKER_REGISTRY:-}ollama/ollama:rocm
|
||||
devices:
|
||||
- /dev/kfd
|
||||
- /dev/dri
|
||||
volumes:
|
||||
- ollama_models:/root/.ollama
|
||||
environment:
|
||||
HSA_OVERRIDE_GFX_VERSION: 11.0.0
|
||||
ports:
|
||||
- target: 11434
|
||||
published: 11434
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
volumes:
|
||||
ollama_models: null
|
||||
Reference in New Issue
Block a user