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