nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit 27da82be9c1b20ca28c4a8089ca33d985f27129c
parent 2040382648231a1303a2f8fcc6413984c81d683f
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 30 Mar 2023 16:36:48 +0200

feat: add consul services

Diffstat:
Mhcl/default/0x0/0x0.nomad | 9+++++++++
Mhcl/default/aload/aload.nomad | 4++++
Mhcl/default/ampache/ampache.nomad | 4++++
Mhcl/default/certbot/certbot.nomad | 9+++++++++
Mhcl/default/cv/cv.nomad | 4++++
Mhcl/default/diary/diary.nomad | 4++++
Mhcl/default/git/git.nomad | 9+++++++++
Mhcl/default/mastodon/mastodon.nomad | 4++++
Mhcl/default/myheats/myheats.nomad | 4++++
Mhcl/default/snibox/snibox.nomad | 4++++
Mhcl/default/writefreely/writefreely.nomad | 4++++
11 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/hcl/default/0x0/0x0.nomad b/hcl/default/0x0/0x0.nomad @@ -32,6 +32,15 @@ job "0x0" { } } + service { + port = "http" + tags = ["http"] + } + service { + port = "https" + tags = ["https"] + } + # Prepare database migrations task "db-upgrade" { driver = "docker" diff --git a/hcl/default/aload/aload.nomad b/hcl/default/aload/aload.nomad @@ -18,6 +18,10 @@ job "aload" { } } + service { + port = "http" + } + task "aload" { driver = "docker" diff --git a/hcl/default/ampache/ampache.nomad b/hcl/default/ampache/ampache.nomad @@ -32,6 +32,10 @@ job "ampache" { } } + service { + port = "https" + } + task "nginx" { driver = "docker" diff --git a/hcl/default/certbot/certbot.nomad b/hcl/default/certbot/certbot.nomad @@ -34,6 +34,15 @@ job "certbot" { } } + service { + port = "http" + tags = ["http"] + } + service { + port = "https" + tags = ["https"] + } + task "request" { driver = "docker" diff --git a/hcl/default/cv/cv.nomad b/hcl/default/cv/cv.nomad @@ -21,6 +21,10 @@ job "cv" { } } + service { + port = "https" + } + task "jekyll" { driver = "docker" diff --git a/hcl/default/diary/diary.nomad b/hcl/default/diary/diary.nomad @@ -21,6 +21,10 @@ job "diary" { } } + service { + port = "https" + } + task "jekyll" { driver = "docker" diff --git a/hcl/default/git/git.nomad b/hcl/default/git/git.nomad @@ -34,6 +34,15 @@ job "git" { } } + service { + port = "stagit" + tags = ["stagit"] + } + service { + port = "smarthttp" + tags = ["smarthttp"] + } + task "smarthttp" { driver = "docker" diff --git a/hcl/default/mastodon/mastodon.nomad b/hcl/default/mastodon/mastodon.nomad @@ -40,6 +40,10 @@ job "mastodon" { } } + service { + port = "https" + } + # Prepare database migrations task "db-upgrade" { driver = "docker" diff --git a/hcl/default/myheats/myheats.nomad b/hcl/default/myheats/myheats.nomad @@ -26,6 +26,10 @@ job "myheats" { } } + service { + port = "https" + } + task "myheats" { driver = "docker" diff --git a/hcl/default/snibox/snibox.nomad b/hcl/default/snibox/snibox.nomad @@ -32,6 +32,10 @@ job "snibox" { } } + service { + port = "https" + } + task "nginx" { driver = "docker" diff --git a/hcl/default/writefreely/writefreely.nomad b/hcl/default/writefreely/writefreely.nomad @@ -32,6 +32,10 @@ job "writefreely" { } } + service { + port = "https" + } + # Prepare database schema # https://github.com/writefreely/writefreely/blob/develop/docker-setup.sh task "db-upgrade" {