chore(media-centre): onboard to traefiks connect-enabled provider
This commit is contained in:
parent
449105050a
commit
421abf5d5f
1 changed files with 8 additions and 35 deletions
|
@ -97,6 +97,14 @@ job "media-centre" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
|
||||
"traefik.http.routers.plex.entrypoints=websecure",
|
||||
"traefik.http.routers.plex.rule=Host(`plex.brmartin.co.uk`)",
|
||||
"traefik.consulcatalog.connect=true",
|
||||
]
|
||||
}
|
||||
|
||||
network {
|
||||
|
@ -152,39 +160,4 @@ job "media-centre" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
group "plex-ingress-group" {
|
||||
|
||||
network {
|
||||
mode = "bridge"
|
||||
port "inbound" {
|
||||
to = 8080
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "inbound"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
|
||||
"traefik.http.routers.plex.entrypoints=websecure",
|
||||
"traefik.http.routers.plex.rule=Host(`plex.brmartin.co.uk`)"
|
||||
]
|
||||
|
||||
connect {
|
||||
gateway {
|
||||
ingress {
|
||||
listener {
|
||||
port = 8080
|
||||
protocol = "http"
|
||||
service {
|
||||
name = "media-centre-plex"
|
||||
hosts = ["*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue