From 8d17a07c9be5cd9d400644c34ea50177535d15f6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 24 Dec 2022 22:59:37 +0100 Subject: reorganize some things --- experimental/bad.nextcloud/deploy/nextcloud.hcl | 137 ------------------------ 1 file changed, 137 deletions(-) delete mode 100644 experimental/bad.nextcloud/deploy/nextcloud.hcl (limited to 'experimental/bad.nextcloud/deploy') diff --git a/experimental/bad.nextcloud/deploy/nextcloud.hcl b/experimental/bad.nextcloud/deploy/nextcloud.hcl deleted file mode 100644 index 45d1b6e..0000000 --- a/experimental/bad.nextcloud/deploy/nextcloud.hcl +++ /dev/null @@ -1,137 +0,0 @@ -job "nextcloud" { - datacenters = ["neptune"] - type = "service" - - group "nextcloud" { - count = 1 - - network { - port "http" { - to = 80 - } - } - - ephemeral_disk { - size = 10000 - } - - restart { - attempts = 10 - delay = "30s" - } - - task "restore-db" { - lifecycle { - hook = "prestart" - sidecar = false - } - - driver = "docker" - config { - image = "litestream/litestream:0.3.7" - args = [ - "restore", "-config", "/etc/litestream.yml", "/ephemeral/nextcloud.db" - ] - volumes = [ - "../alloc/data:/ephemeral", - "secrets/litestream.yml:/etc/litestream.yml" - ] - } - user = "33" - - template { - data = file("../config/litestream.yml") - destination = "secrets/litestream.yml" - } - - resources { - memory = 200 - cpu = 1000 - } - } - - task "nextcloud" { - driver = "docker" - config { - image = "nextcloud:22.2.3-apache" - ports = [ "http" ] - #entrypoint = [ "/bin/sh", "-c" ] - #command = "apache2-foreground" - - volumes = [ - "../alloc/data:/var/www/html/data", - ] - } - user = "33" - - template { - data = <