Code Monkey home page Code Monkey logo

Comments (5)

d1ceward avatar d1ceward commented on September 27, 2024

Mmmh, I had done some tests and Dokku managed to get the right port automatically with the EXPOSE instruction in the Dockerfile.

  • With which version of Dokku this happened?
  • Did the application already have the proxy configured by a previous deployment? (or fresh app)

from plausible_on_dokku.

Neamar avatar Neamar commented on September 27, 2024

I did an app:destroy before, so I believe I started from scratch completely, unless dokku keeps some mapping (but even then, I never used port 5000, and it does seem to be the default)

running dokku version 0.24.2

from plausible_on_dokku.

d1ceward avatar d1ceward commented on September 27, 2024

So, I re-tested with the latest version of Dokku (0.24.7) with a new fresh app and it seems to succeed in retrieving the port coming from the EXPOSE statement of the Dockerfile (see screen below), I will try to re-test with version 0.24.2 of Dokku and for Letsencrypt (443 mapping) when I have time.

image
image

from plausible_on_dokku.

Neamar avatar Neamar commented on September 27, 2024

I must have messed up somewhere then, or have default config from other apps.

Thanks for investigating, I'll close, seems to be related to me

from plausible_on_dokku.

d1ceward avatar d1ceward commented on September 27, 2024

I know it's been a while but I found the cause that prevents Dokku from auto-detecting the correct port...
While doing another project (uptime_kuma_on_dokku) I noticed that configuring the domain before the first deployment defaults to port 5000 and prevents auto-detection of the port from the Dockerfile.
So for now in the installation guide I have moved the domain configuration to the end, I will do more testing and maybe change the port in the container to port 5000 instead of 80.

from plausible_on_dokku.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.