Refactor for multi-wiki setup.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
job "petruwiki" {
|
||||
job "wiki" {
|
||||
datacenters = ["alo"]
|
||||
|
||||
group "server" {
|
||||
group "servers" {
|
||||
volume "appdata" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
@@ -22,14 +22,14 @@ job "petruwiki" {
|
||||
port "http" { }
|
||||
}
|
||||
|
||||
task "wiki" {
|
||||
task "captainslog" {
|
||||
driver = "exec"
|
||||
|
||||
config {
|
||||
command = "/sw/bin/node"
|
||||
args = [
|
||||
"/appdata/petruwiki/node_modules/tiddlywiki/tiddlywiki.js",
|
||||
"/appdata/petruwiki/petruwiki",
|
||||
"/appdata/petruwiki/captainslog",
|
||||
"--listen",
|
||||
"host=0.0.0.0",
|
||||
"port=${NOMAD_PORT_http}",
|
||||
@@ -56,18 +56,18 @@ job "petruwiki" {
|
||||
}
|
||||
|
||||
service {
|
||||
name = "petruwiki"
|
||||
name = "captainslog"
|
||||
port = "http"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.petruwiki.entryPoints=websecure",
|
||||
"traefik.http.routers.petruwiki.middlewares=authentik@file",
|
||||
"traefik.http.routers.captainslog.entryPoints=websecure",
|
||||
"traefik.http.routers.captainslog.middlewares=authentik@file",
|
||||
]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 1000
|
||||
memory = 512
|
||||
cpu = 500
|
||||
memory = 256
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user