Hi all,
I need to create a job to deploy an application which listens on 2 ports. 1 is 8080(http) and another is 8086(websocket).
i am using docker as driver and under config giving the image address.
when i write
port_map {
HTTP = [8088,8086]
}
# Request for a static port
port "HTTP" {
static = [8080,8086]
}
the nomad job is failing.
Error parsing job file melody-all.sh: error parsing 'job': group: 'ms', task: 'gc', resources, network, ports -> 1 error(s) decoding:
* 'static' expected type 'int', got unconvertible type '[]interface {}'
please suggest other way around.