job "nextcloud" { datacenters = ["columbia"] region = "global" type = "service" constraint { attribute = "${meta.storage_optimized}" value = "true" } update { stagger = "30s" max_parallel = 1 } group "nextcloud" { count = 1 task "nextcloud" { vault { policies = ["default", "ansible"] change_mode = "restart" } driver = "docker" config { image = "docker.service.masked.name:8082/nextcloud:latest" ports = ["nextcloud"] volumes = [ "/mnt/raid/nextcloud/:/var/www/html" ] } service { name = "nextcloud" port = "nextcloud" check { name = "nextcloud" type = "tcp" interval = "10s" timeout = "2s" address_mode = "driver" } } template { data = <