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:
http://recipeapp.xxx.de:49169/
but not under
My VHOST config looks like this:
xxx.de
The nginx.conf of the application is created as follows:
upstream recipeapp { server 127.0.0.1:49169; }
server {
listen [::]:80;
listen 80;
server_name recipeapp.xxx.de;
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
Double check the content /home/dokku/VHOST
as root. The file must contain one line, namely "xxx.de".
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 xxx.de; An entry for xxx.de pointing to an EC2 instance and an A record for * .xxx.de also pointing to an EC2 instance.
Hope it helps.
source to share