job "portaldb" { datacenters = ["dc1"] type = "service" group "db" { count = 1 constraint { attribute = "${node.unique.name}" value = "autobox.i80.dk" } network { port "mysql" { static = 3306 } } volume "dolibarr-db" { type = "host" source = "dolibarr-db" read_only = false } task "mariadb" { driver = "docker" config { image = "mariadb:10.11" ports = ["mysql"] } volume_mount { volume = "dolibarr-db" destination = "/var/lib/mysql" } template { data = <