Add AI stack
This commit is contained in:
53
stacks/ai/ai-frontend.nomad
Normal file
53
stacks/ai/ai-frontend.nomad
Normal file
@@ -0,0 +1,53 @@
|
||||
job "ai-frontend" {
|
||||
datacenters = ["Homelab-PTECH-DC"]
|
||||
region = "home"
|
||||
type = "service"
|
||||
|
||||
group "openwebui" {
|
||||
count = 1
|
||||
network {
|
||||
port "http" { to = 8080 }
|
||||
}
|
||||
service {
|
||||
name = "openwebui"
|
||||
port = "http"
|
||||
tags = ["traefik.enable=true"]
|
||||
}
|
||||
task "server" {
|
||||
driver = "podman"
|
||||
env {
|
||||
OLLAMA_BASE_URL = "http://ollama.service.consul:11434"
|
||||
}
|
||||
config {
|
||||
image = "ghcr.io/open-webui/open-webui:main"
|
||||
ports = ["http"]
|
||||
volumes = ["/opt/homelab/openwebui:/app/backend/data"]
|
||||
}
|
||||
resources { cpu = 1000; memory = 1024 }
|
||||
}
|
||||
}
|
||||
|
||||
group "lobechat" {
|
||||
count = 1
|
||||
network {
|
||||
port "http" { to = 3210 }
|
||||
}
|
||||
service {
|
||||
name = "lobechat"
|
||||
port = "http"
|
||||
tags = ["traefik.enable=true"]
|
||||
}
|
||||
task "server" {
|
||||
driver = "podman"
|
||||
env {
|
||||
OLLAMA_PROXY_URL = "http://ollama.service.consul:11434"
|
||||
ACCESS_CODE = "securepassword123"
|
||||
}
|
||||
config {
|
||||
image = "docker.io/lobehub/lobe-chat"
|
||||
ports = ["http"]
|
||||
}
|
||||
resources { cpu = 500; memory = 512 }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user