Installing GitLab on Dokku-Alt

Grabbing the repository

git clone https://github.com/sameersbn/docker-gitlab.git
cd docker-gitlab
git remote add dokku [email protected]
git push dokku master

Creating and linking the databases

dokku postgresql:create gitlab
dokku postgresql:link gitlab
dokku redis:create gitlab

Config variables

We will need to manually factor out the postgres and the redis urls, and set some other configuration variables.

dokku config:set gitlab DB_HOST=postgresql
dokku config:set gitlab DB_PASS=dbpass
dokku config:set gitlab DB_USER=gitlab
dokku config:set gitlab REDIS_HOST=redis
dokku config:set gitlab REDIS_PORT=6379
dokku config:set gitlab GITLAB_PORT=80
dokku config:set gitlab GITLAB_SSH_PORT=10022
dokku config:set gitlab SMTP_DOMAIN=YOURHOST.COM
dokku config:set gitlab SMTP_HOST=smtp.YOURHOST.COM
dokku config:set gitlab SMTP_PASS=smtppass
dokku config:set gitlab SMTP_USER=smtp_user
dokku config:set gitlab GITLAB_HOST=git.YOURHOST.COM
dokku config:set gitlab [email protected]
dokku config:set gitlab [email protected]

For SSH-based git, we will need to expose the port 10022 as well:

dokku bind:create gitlab 22 10022


You may need to install the bind plugin for dokku-alt.

Persistent volumes

Finally, we need to set up the volumes

dokku volume:create gitlab /home/git/data
dokku volume:link gitlab gitlab

After this, log in with the default user root and password 5iveL!fe and have fun!

One Response to “Installing GitLab on Dokku-Alt”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>