[main] Git stuff

This commit is contained in:
2024-12-09 17:50:15 +01:00
parent 78a6317ee5
commit 61e0c670c6
3 changed files with 75 additions and 14 deletions

View File

@@ -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"]
}