cstroe / gogs-in-dokku

A walkthrough for running Gogs in Dokku from dockerhub.com image
GNU General Public License v3.0
2 stars 1 forks source link

HTTP Port not properly exposed #2

Open born2discover opened 6 years ago

born2discover commented 6 years ago

Have you by any chance had the opportunity to find a solution tot he issue with HTTP port not being exposed properly @cstroe ?

I am facing the same issue and unfortunately seem to have hit a wall.

Thanks in advance!

cstroe commented 6 years ago

I haven't looked at the issue in a while. The first step would be to write steps to reproduce the issue. I can work on that, and also document a work around.

From what I remember, the work around was to manually update the IPs and ports in the nginx configurations for each service 😢 . Obviously this doesn't scale well past 3-4 services...

born2discover commented 6 years ago

I went on to read a little further on the subject and found out that currently Dokku does not handle well EXPOSE directive in Dockerfiles when they have more than one port

So a workaround I was able to implement was to clone that Docker image, change EXPOSE directive so it only has one port per declaration and finally deploy that.

By the way, I thought I'd mention: I also tried the "git push" methodology for deploying Gogs as described here and it works as well.

Hope it helps!