Dokku: set two ports from the application

I am trying to deploy a Scala application on dokku, the application starts the http server and the configured sshd server.

I have a problem, it seems that dokku supports only one port for an application. I need dokku to display both of my application ports on the Internet.

In docker, this is possible and quite simple to do, but when I implement the same technique in the dokku file, I get an error message.

Any suggestions for allowing access to the two ports?

+3
scala ports dokku deploying
source share
1 answer

Since this is, after all, a docker, you can use the ambassador ...

You will need a line, for example:

docker run -t -i -link mysql:mysql -name mysql_ambassador -p 3306:3306 ctlc/ambassador 

Replacing your port and mysql with the name of your container (from docker images )

See https://www.ctl.io/developers/blog/post/deploying-multi-server-docker-apps-with-ambassadors

NOTE. Before as...

make sure you docker pull svendowideit/ambassador:latest
0
source share

All Articles