Run opensprinkler-weather proxy.
This commit is contained in:
@@ -9,6 +9,10 @@ job "weewx" {
|
|||||||
network {
|
network {
|
||||||
port "http" {
|
port "http" {
|
||||||
}
|
}
|
||||||
|
port "osweather" {
|
||||||
|
static = 20080
|
||||||
|
to = 80
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task "backend" {
|
task "backend" {
|
||||||
@@ -45,6 +49,16 @@ job "weewx" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task "osweather" {
|
||||||
|
driver = "docker"
|
||||||
|
|
||||||
|
config {
|
||||||
|
image = "gitea.v.paler.net/ppetru/opensprinkler-weather:latest"
|
||||||
|
|
||||||
|
ports = [ "osweather" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
name = "weather"
|
name = "weather"
|
||||||
port = "http"
|
port = "http"
|
||||||
@@ -62,5 +76,10 @@ job "weewx" {
|
|||||||
timeout = "2s"
|
timeout = "2s"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
name = "osweather"
|
||||||
|
port = "osweather"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user