chore: backup Nomad jobs [skip ci]
This commit is contained in:
74
nomad_backup/miniflux.hcl
Normal file
74
nomad_backup/miniflux.hcl
Normal file
@@ -0,0 +1,74 @@
|
||||
job "miniflux" {
|
||||
datacenters = ["dc1"]
|
||||
|
||||
group "miniflux" {
|
||||
count = 1
|
||||
|
||||
task "miniflux" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "miniflux/miniflux:latest"
|
||||
ports = ["http"]
|
||||
|
||||
#health_check {
|
||||
# test = ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
# interval = "10s"
|
||||
# timeout = "5s"
|
||||
#}
|
||||
}
|
||||
service {
|
||||
name = "${TASKGROUP}"
|
||||
tags = ["miniflux", "tools",
|
||||
"traefik.http.routers.minifluxlan.rule=Host(`miniflux.service.dc1.consul`)",
|
||||
"traefik.http.routers.minifluxwan.rule=Host(`miniflux.fbleagh.duckdns.org`)",
|
||||
"traefik.http.routers.minifluxwan.tls=true",
|
||||
]
|
||||
port = "http"
|
||||
|
||||
#check {
|
||||
# type = "script"
|
||||
# name = "check_up"
|
||||
# command = "/local/healthcheck.sh"
|
||||
# interval = "60s"
|
||||
# timeout = "5s"
|
||||
|
||||
# check_restart {
|
||||
# limit = 3
|
||||
# grace = "90s"
|
||||
# ignore_warnings = false
|
||||
# }
|
||||
#}
|
||||
}
|
||||
|
||||
env {
|
||||
DATABASE_URL = "postgres://postgres:postgres@master.postgres.service.dc1.consul/miniflux?sslmode=disable"
|
||||
RUN_MIGRATIONS = "1"
|
||||
CREATE_ADMIN = "1"
|
||||
ADMIN_USERNAME = "admin"
|
||||
ADMIN_PASSWORD = "farscape5"
|
||||
BASE_URL = "https://miniflux.fbleagh.duckdns.org"
|
||||
OAUTH2_PROVIDER="google"
|
||||
OAUTH2_CLIENT_ID="807888907647-g6i7t2auvbrjinf151qupc663tgpn6gh.apps.googleusercontent.com"
|
||||
OAUTH2_CLIENT_SECRET="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"
|
||||
OAUTH2_REDIRECT_URL="https://miniflux.fbleagh.duckdns.org/oauth2/google/callback"
|
||||
OAUTH2_USER_CREATION="1"
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 500
|
||||
memory = 256
|
||||
}
|
||||
|
||||
}
|
||||
network {
|
||||
// mbits = 100
|
||||
|
||||
port "http" {
|
||||
to = 8080
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user