job "receptari" { region = "global" datacenters = ["samfelag"] type = "service" group "receptari" { count = 1 restart { attempts = 5 delay = "15s" } network { port "http" { to = 80 } } # Volumes volume "receptari" { type = "host" read_only = false source = "receptari" } # RECEPTARI WEB task "receptari" { driver = "docker" env { DB_DIR = "/data/receptari" } config { image = "marc.sastre.cat/receptari:latest" ports = ["http"] } volume_mount { volume = "receptari" destination = "/data/receptari" read_only = false } resources { cpu = 100 memory = 512 } service { name = "receptari" port = "http" } } } }