Dokku EC2 port configuration issues

I am currently trying to deploy my application to an EC2 instance using Dokku and my first impression is that it is really awesome. However, I have some issues related to the configuration of my application which is accessible through port 80 and not the docker container port.

So, for example, when I try to get to my application, it is available under:

but not under

My VHOST config looks like this:


The nginx.conf of the application is created as follows:

upstream recipeapp { server; }
server {
  listen      [::]:80;
  listen      80;
  location    / {
    proxy_pass  http://recipeapp;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Request-Start $msec;


I add my remote with: git remote add appstore dokku @xxx: recipeapp

And push it with: git push app creation wizard

So what am I doing wrong? I am currently trying to use it for a few days to make it work correctly, but I can no longer see any possibilities.


source to share

1 answer

Double check the content /home/dokku/VHOST

as root. The file must contain one line, namely "".

If the file is missing touch /home/dokku/VHOST

and enter the string.

Also keep in mind that you need to configure DNS settings for; An entry for pointing to an EC2 instance and an A record for * also pointing to an EC2 instance.

Hope it helps.



All Articles