resources
This commit is contained in:
@@ -47,6 +47,7 @@ job "gitea" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
|
interval = "10m"
|
||||||
attempts = 5
|
attempts = 5
|
||||||
delay = "30s"
|
delay = "30s"
|
||||||
}
|
}
|
||||||
@@ -89,7 +90,7 @@ job "gitea" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 200
|
cpu = 500
|
||||||
memory = 512
|
memory = 512
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ job "postgres" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "host"
|
#mode = "host"
|
||||||
port "postgres"{
|
port "postgres"{
|
||||||
static = 5432
|
static = 5432
|
||||||
}
|
}
|
||||||
@@ -28,10 +28,10 @@ job "postgres" {
|
|||||||
service {
|
service {
|
||||||
name = "postgres"
|
name = "postgres"
|
||||||
port = "postgres"
|
port = "postgres"
|
||||||
#tags = [
|
tags = [
|
||||||
# "traefik.enable=true",
|
"traefik.enable=true",
|
||||||
# "traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
"traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
||||||
#]
|
]
|
||||||
}
|
}
|
||||||
task "postgres" {
|
task "postgres" {
|
||||||
driver = "podman"
|
driver = "podman"
|
||||||
|
|||||||
Reference in New Issue
Block a user