I finally was able to make this work I had some figuring out to get it right so if this helps anyone.
-
It’s an experimental feature, so had to enable experimental feature from settings.
-
You have to enter all the settings: Portainer, Dashboard, username, password etc. I tried it with just the traefik setting on and dashboard as ‘off’, nothing happens. But the UI doesn’t give any indication that dashboard is mandatory or anything.
-
Then I ran into this error:
ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint traefik (703c6972ebf3bf79ebac9823a23c5aa9dc4b0ad73323ba3e0813ee8cbc6946b5): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
Error Deploying Services on Docker Machine OrderManagementDemo!
This was because my node server was also running on the same port.
I made port as blank in Node, deployed to remote and then apply traefik & portainer settings again, it showed the green lights
and then I changed the host of the Server to my ‘https’ domain.
It worked out in the end.