Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)?

like image 512
kaycee49 Avatar asked Aug 07 '15 00:08

kaycee49


People also ask

What is dokku in Docker?

Dokku helps you build and manage the lifecycle of applications from building to scaling. View Documentation Explore Pro. # download the installation script.

How do I restart dokku app?

An app may be restarted using the ps:restart command.

Is dokku free?

Dokku is free to use. Dokku is one of the most powerful free-to-use PaaS offerings with several useful features for modern applications. It can be downloaded at https://github.com/dokku/dokku.


1 Answers

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.

like image 176
mixxorz Avatar answered Oct 18 '22 10:10

mixxorz