Thingvellir as nomad server
This commit is contained in:
67
data/nomad/old/collabora.nomad
Normal file
67
data/nomad/old/collabora.nomad
Normal file
@@ -0,0 +1,67 @@
|
||||
job "collabora" {
|
||||
region = "global"
|
||||
datacenters = ["samfelag"]
|
||||
type = "service"
|
||||
|
||||
group "collabora" {
|
||||
count = 1
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "1m"
|
||||
}
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = 9980
|
||||
}
|
||||
}
|
||||
|
||||
volume "collabora" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
source = "collabora"
|
||||
}
|
||||
|
||||
task "collabora" {
|
||||
driver = "docker"
|
||||
|
||||
env {
|
||||
domain = "nextcloud\\.lajuntament\\.space"
|
||||
username = "lajuntament"
|
||||
password = "eLn1lIm4rc"
|
||||
extra_params = "--o:ssl.enable=false"
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "collabora"
|
||||
destination = "/etc/loolwsd"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
config {
|
||||
image = "collabora/code:latest"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 1500
|
||||
memory = 1024
|
||||
}
|
||||
|
||||
service {
|
||||
name = "collabora"
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "tcp"
|
||||
port = "http"
|
||||
interval = "30s"
|
||||
timeout = "2s"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
73
data/nomad/old/pihole.nomad
Normal file
73
data/nomad/old/pihole.nomad
Normal file
@@ -0,0 +1,73 @@
|
||||
job "pihole" {
|
||||
region = "global"
|
||||
datacenters = ["samfelag"]
|
||||
type = "service"
|
||||
|
||||
group "pihole" {
|
||||
count = 1
|
||||
|
||||
volume "pihole" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
source = "dns-pihole"
|
||||
}
|
||||
|
||||
volume "dnsmasq" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
source = "dns-dnsmasq"
|
||||
}
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "15s"
|
||||
}
|
||||
|
||||
network {
|
||||
port "dns" {
|
||||
static = 53
|
||||
}
|
||||
port "http" {
|
||||
to = 80
|
||||
}
|
||||
}
|
||||
|
||||
task "pihole" {
|
||||
driver = "docker"
|
||||
|
||||
volume_mount {
|
||||
volume = "pihole"
|
||||
destination = "/etc/pihole"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "dnsmasq"
|
||||
destination = "/etc/dnsmasq.d"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
env {
|
||||
TZ = "Europe/Amsterdam"
|
||||
WEBPASSWORD = "elbonfeix"
|
||||
ServerIP = "100.107.148.47"
|
||||
}
|
||||
|
||||
config {
|
||||
image = "pihole/pihole:v5.7"
|
||||
ports = ["dns", "http"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 100
|
||||
memory = 64
|
||||
}
|
||||
|
||||
service {
|
||||
name = "pihole-gui"
|
||||
port = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
47
data/nomad/old/unbound.nomad
Normal file
47
data/nomad/old/unbound.nomad
Normal file
@@ -0,0 +1,47 @@
|
||||
job "unbound" {
|
||||
region = "global"
|
||||
datacenters = ["samfelag"]
|
||||
type = "service"
|
||||
|
||||
group "unbound" {
|
||||
count = 1
|
||||
|
||||
volume "unbound" {
|
||||
type = "host"
|
||||
read_only = false
|
||||
source = "dns-unbound"
|
||||
}
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "15s"
|
||||
}
|
||||
|
||||
network {
|
||||
port "dns" {
|
||||
static = 5533
|
||||
}
|
||||
}
|
||||
|
||||
task "unbound" {
|
||||
driver = "docker"
|
||||
|
||||
volume_mount {
|
||||
volume = "unbound"
|
||||
destination = "/opt/unbound/etc/unbound/"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
config {
|
||||
image = "mvance/unbound:latest"
|
||||
ports = ["dns"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 50
|
||||
memory = 64
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user