O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a WordPress app with Dokku

Now that we have played around with Dokku for a while, exploring how it works and what plugins are available, it's time to set up a WordPress site. After all, that's why we were exploring it in the first place.

This is what we are going to do:

  1. Create a new local Git repository and download WordPress on it.
  2. Install the MariaDB plugin, create a database, and link it to our app.
  3. Configure WordPress to connect to our linked database.

On your local computer, download and unpack the latest version of WordPress and create a new Git repository. Create a composer.json file to tell Dokku that this is a PHP app we are creating.

Note

You can read more about how to hint Dokku on what type of app you are creating at https://devcenter.heroku.com/articles/buildpacks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required