Manual installation

note

You need to run the following steps on a dokku server. If you do not have a dokku server for now, please follow the getting started guide.

First we need to create a new app for ledokku.

dokku apps:create ledokku

To keep the same ssh key when you update ledokku we need to create a persistent storage for the ssh key.

mkdir /var/lib/dokku/data/storage/ledokku-ssh/
chown dokku:dokku /var/lib/dokku/data/storage/ledokku-ssh/
dokku storage:mount ledokku /var/lib/dokku/data/storage/ledokku-ssh/:/root/.ssh

Create a new Redis database.

# If the Redis plugin is not installed on your server run, otherwise skip this command
sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
dokku redis:create ledokku
dokku redis:link ledokku ledokku

Create a new Postgres database.

# If the Postgres plugin is not installed on your server run, otherwise skip this command
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
dokku postgres:create ledokku
dokku postgres:link ledokku ledokku

Let's add the required env variables we need.

dokku config:set ledokku DOKKU_SSH_HOST="MY_SERVER_IP"
dokku config:set ledokku JWT_SECRET="SUPER_SECURE_SECRET"

Now let's pull the latest version of ledokku from the docker registry and deploy it.

dokku git:from-image ledokku ledokku/ledokku:0.7.0

After the app is deployed last step is to setup the proxy port.

dokku proxy:ports-add ledokku http:80:4000
dokku proxy:ports-remove ledokku http:4000:4000

Now open you server ip in your browser (eg: http://123.123.123.123).

You should be able to see the ledokku admin 🎉.

Congrats, the ledokku app is running on your server 👏.

We are preparing some documentation to show you how to setup a custom domain name and deploy your first app. In the meantime, to deploy your first app please take a look at the dokku official documentation http://dokku.viewdocs.io/dokku/deployment/application-deployment/.