ufw-docker
ufw-docker copied to clipboard
Docker swarm mode multiple ports for service
Hi. I can't get multiple ports to work for my docker swarm service.
Whenever I try to add the 2nd rule it overrides the first rule and vice versa. I am trying to open port 80 and 443 of my loadbalancer service.
I tried:
ufw-docker service allow traefik_traefik 443
ufw-docker service allow traefik_traefik 80
Which results in port 80 being open but port 443 not.
ufw-docker service allow traefik_traefik 443,80
does not work either (Port syntax error)
Any idea on how to achieve this?