Compare commits
2 Commits
b2c055ffb2
...
360e776745
| Author | SHA1 | Date | |
|---|---|---|---|
| 360e776745 | |||
| 5a819f70bb |
39
services/ollama.hcl
Normal file
39
services/ollama.hcl
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,9 @@ job "tiddlywiki-mcp" {
|
|||||||
|
|
||||||
group "captainslog" {
|
group "captainslog" {
|
||||||
network {
|
network {
|
||||||
port "http" {}
|
port "http" {
|
||||||
|
static = 3500
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
volume "services" {
|
volume "services" {
|
||||||
|
|||||||
Reference in New Issue
Block a user