- Install Virtualbox
- Install Vagrant
- Add
192.168.33.10 microservices.local
to your/etc/hosts
- Clone this repository
- Start the vm:
vagrant up
- SSH into the vm:
vagrant ssh
-
Install Dokku
wget https://raw.githubusercontent.com/dokku/dokku/v0.7.1/bootstrap.sh
sudo DOKKU_TAG=v0.7.1 bash bootstrap.sh
-
Navigate to microservices.local
-
Copy your public key (output of
cat ~/.ssh/id_rsa.pub
) to the Dokku Setup. -
Change the hostname to
microservices.local
-
Check
use virtualhost naming for apps
-
Finish Setup
Follow the instructions of the deploy tutorial or:
$ dokku apps:create ruby-rails-sample
$ sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
$ dokku postgres:create rails-database
$ dokku postgres:link rails-database ruby-rails-sample
/etc/hosts
doesn't support wildcards so add 192.168.33.10 ruby-rails-sample.microservices.local
to your /etc/hosts
. In production, we would point *.microservices.com
, or similar, to our server.
$ cd ruby-rails-sample
$ git remote add dokku dokku@microservices.local:ruby-rails-sample
$ git push dokku master
Navigate to http://ruby-rails-sample.microservices.local