job "ollama" { datacenters = ["alo"] type = "service" group "ollama" { network { port "http" { static = 11434 } } task "server" { driver = "docker" config { image = "ollama/ollama:latest" ports = ["http"] volumes = ["/data/services/ollama:/root/.ollama"] } service { name = "ollama" port = "http" check { type = "http" path = "/" interval = "30s" timeout = "5s" } } resources { cpu = 8000 memory = 2048 } } } }