it works, maybe service in the wrong place?
This commit is contained in:
@@ -4,10 +4,11 @@ job "gitea" {
|
||||
]
|
||||
type = "service"
|
||||
|
||||
group "gitea" {
|
||||
group "apps" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
mode = "host"
|
||||
port "http" {
|
||||
to = 3000
|
||||
}
|
||||
@@ -17,6 +18,16 @@ job "gitea" {
|
||||
to = 20222
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
name = "gitea"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.gitea.rule=Host(`gitea.service.consul`)",
|
||||
]
|
||||
}
|
||||
|
||||
volume "gitea-data" {
|
||||
type = "csi"
|
||||
@@ -69,15 +80,6 @@ job "gitea" {
|
||||
memory = 512
|
||||
}
|
||||
|
||||
service {
|
||||
name = "gitea"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.http.rule=Host(`gitea.service.consul`)",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user