fix(ai-backend): Configure Ollama service with host address mode
The `ollama` service in the `ai-backend` Nomad job has been updated to use `address_mode = "host"`. This ensures the service is registered with the host's IP address in Consul, allowing external proxies like Traefik to correctly route traffic. This change resolves potential connectivity issues by making the service directly accessible via the host network.
This commit is contained in:
@@ -50,6 +50,7 @@ job "ai-backend" {
|
|||||||
name = "ollama"
|
name = "ollama"
|
||||||
port = "api"
|
port = "api"
|
||||||
tags = ["traefik.enable=true"]
|
tags = ["traefik.enable=true"]
|
||||||
|
address_mode = "host"
|
||||||
check {
|
check {
|
||||||
type = "http"
|
type = "http"
|
||||||
path = "/"
|
path = "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user