# TODO add host volume job "postgres" { datacenters = ["dc1"] type = "service" group "db" { network { mode = "bridge" port "postgres" { to = 5432 } } service { name = "postgres" port = "postgres" address_mode = "alloc" check { type = "tcp" interval = "5s" timeout = "1s" } } task "postgres" { driver = "docker" config { image = "postgres:18-alpine" ports = ["postgres"] } env { POSTGRES_USER = "postgres" POSTGRES_DB = "scrow" POSTGRES_HOST_AUTH_METHOD = "trust" } resources { cpu = 500 memory = 512 } } } }