Spaces:
Configuration error
Configuration error
Add Ollama replicas compose
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253# ollama-replicas/docker-compose.yml# Private worker backends. Ports are bound on the private network ONLY.# The public surface is the gateway; never expose 11434 externally.services: ollama-a: image: ollama/ollama:0.5 container_name: inference-worker-a ports: - "127.0.0.1:11434:11434" # loopback; gateway/scheduler reach it via overlay volumes: - worker-a-cache:/root/.ollama environment: - OLLAMA_HOST=0.0.0.0 - OLLAMA_KEEP_ALIVE=5m deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [gpu] healthcheck: test: ["CMD", "ollama", "list"] interval: 30s timeout: 10s retries: 3
ollama-b: image: ollama/ollama:0.5 container_name: inference-worker-b ports: - "127.0.0.1:11435:11434" volumes: - worker-b-cache:/root/.ollama environment: - OLLAMA_HOST=0.0.0.0 - OLLAMA_KEEP_ALIVE=5m deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [gpu] healthcheck: test: ["CMD", "ollama", "list"] interval: 30s timeout: 10s retries: 3
volumes: worker-a-cache: worker-b-cache:90-execution/distributed-inference/ollama-replicas/docker-compose.ymlAdded+53