diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/deployment/nextcloud.hcl | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/app/deployment/nextcloud.hcl b/app/deployment/nextcloud.hcl index b2e11bf..8eed7d9 100644 --- a/app/deployment/nextcloud.hcl +++ b/app/deployment/nextcloud.hcl @@ -10,34 +10,31 @@ job "nextcloud" { group "nextcloud" { count = 1 + + network { + port "web_port" { + to = 80 + } + } + task "nextcloud" { driver = "docker" config { image = "lxpz/deuxfleurs_nextcloud_amd64:8" - port_map { - web_port = 80 - } + ports = [ "web_port" ] volumes = [ "secrets/config.php:/var/www/html/config/config.php" ] } - artifact { - source = "http://127.0.0.1:8500/v1/kv/configuration/nextcloud/config.php.tpl?raw" - destination = "secrets/config.php.tpl" - mode = "file" - } template { - source = "secrets/config.php.tpl" + data = file("../config/configuration/nextcloud/config.php.tpl") destination = "secrets/config.php" } resources { memory = 1000 cpu = 2000 - network { - port "web_port" {} - } } service { |