From da915caf12c909ac5cb6d48e05d70b2dea563b00 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Sun, 9 Feb 2025 19:18:09 +0000 Subject: [PATCH] privatebin: separate db, cleanup --- jobs/services/privatebin.hcl | 45 ++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/jobs/services/privatebin.hcl b/jobs/services/privatebin.hcl index 48644e2..b43f42d 100644 --- a/jobs/services/privatebin.hcl +++ b/jobs/services/privatebin.hcl @@ -10,6 +10,9 @@ job "privatebin" { port "http" { to = 8080 } + port "db" { + to = 5432 + } } service { @@ -25,7 +28,7 @@ job "privatebin" { tags = [ "traefik.enable=true", - "traefik.http.routers.privatebin.rule=Host(`paste.rb.dcu.ie`) || Host(`paste.redbrick.dcu.ie`)", + "traefik.http.routers.privatebin.rule=Host(`paste.redbrick.dcu.ie`)", "traefik.http.routers.privatebin.entrypoints=web,websecure", "traefik.http.routers.privatebin.tls.certresolver=lets-encrypt", ] @@ -42,15 +45,10 @@ job "privatebin" { "local/conf.php:/srv/data/conf.php", ] } - template { - destination = "local/.env" - env = true - change_mode = "restart" - data = <