diff --git a/apps/gitea/live.hcl b/apps/gitea/live.hcl index 7e6b7c1..44d8206 100644 --- a/apps/gitea/live.hcl +++ b/apps/gitea/live.hcl @@ -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`)", - ] - } } } } \ No newline at end of file diff --git a/apps/postgresql/live.hcl b/apps/postgresql/live.hcl index d3e3097..a56ef6b 100644 --- a/apps/postgresql/live.hcl +++ b/apps/postgresql/live.hcl @@ -43,7 +43,6 @@ job "postgres" { cpu = 1000 memory = 1024 network { - mbits = 10 port "db" { static = 5432 }