How to use Multiple Ports?

Hi @andyl

If you want to expose multiple internal ports using different public ports then you’ll need to have multiple [[services]] sections, for example:

[[services]]
    internal_port = 8080
    protocol = 'tcp'

    [[services.ports]]
        handlers = ['http']
        port = 8080

....

[[services]]
    internal_port = 8081
    protocol = 'tcp'

    [[services.ports]]
        handlers = ['http']
        port = 8081
3 Likes