ports

Defines the ports that will be externalised to the host dev.azk.io.

Usage:

ports: {
  PORT_NAME: '[FIX_PORT_NUMBER:]PORT_NUMBER/tcp',
},
Examples:

Export the port 8080 of the container to a random port controlled by azk.

ports: {
  http: "8080",
}

Export the port 25 of the container to port 25 of the host.

ports: {
  smtp: "25:25/tcp",
},
export_envs: {
  MAIL_PORT: "#{net.port.smtp}",
},

Important: Only use this feature as a last resource since it may cause a port conflict on the host machine.