How to point a Dokku app at the root domain of the dokku server
Asked Answered
R

1

8

How do I point a dokku app that will set up in the dokku server, to point at the root domain of the server itself. Suppose my domain is apps.com and the app to be implemented is called botapp. If I use virtualhost naming, and do git remote add dokku [email protected]:botapp it will get pointed at botapp.apps.com. What do I do to get the botapp pointed at apps.com itself (the root domain).

Also, how do I know what port a dokku app is rooting, inspite of using subdomains (virtualhost naming)?

Raisin answered 7/8, 2015 at 0:46 Comment(0)
S
18

As of v0.3.10, Dokku ships with a domains plugin. This lets you easily add domains to your app. By default your app is located at myapp.mydomain.com. If you want your app to be accessible via the root domain, then just add the root domain as one of your app's domains. dokku domains:add myapp mydomain.com.

That was really straightforward, the docs need to be updated to reflect this, really.

For your second question, your app is not visible to the outside world. Your app is running inside its own docker container, with its own local IP address. If you still want to find out what port your app has exposed, you can run docker ps on your server.

Siddons answered 7/8, 2015 at 16:0 Comment(1)
I thought I had to remove the global domain for a second, but it ended up being that I needed to set up letsencrypt plugin again since Chrome defaultly requests a secure site. I also found out that having domains that I haven't yet been pointed to your server will inhibit the letsencrypt process.Lithology

© 2022 - 2024 — McMap. All rights reserved.