[main] Git stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
job "portugalfaq" {
|
||||
job "{{PROJECT_NAME}}" {
|
||||
region = "global"
|
||||
datacenters = ["dc1"]
|
||||
type = "service"
|
||||
@@ -9,19 +9,19 @@ job "portugalfaq" {
|
||||
progress_deadline = "6m"
|
||||
}
|
||||
|
||||
group "portugalfaq-group" {
|
||||
group "[[PROJECT_NAME]]-group" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "port-app" {
|
||||
to = 9912 # Internal application port
|
||||
to = [[PORT]] # Internal application port
|
||||
}
|
||||
}
|
||||
|
||||
# Register the service with Consul
|
||||
service {
|
||||
provider = "consul"
|
||||
name = "portugalfaq"
|
||||
name = "[[PROJECT_NAME]]"
|
||||
port = "port-app"
|
||||
|
||||
# Traefik-specific tags for routing
|
||||
@@ -38,11 +38,11 @@ job "portugalfaq" {
|
||||
}
|
||||
}
|
||||
|
||||
task "portugalfaq-task" {
|
||||
task "[[PROJECT_NAME]]-task" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "registry.i80.dk/gitea/portugalfaq:latest"
|
||||
image = "registry.i80.dk/gitea/{{PROJECT_NAME}}:latest"
|
||||
ports = ["port-app"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user