dokku

Dokku, PHP apps, and Crontab tasks

I decided to try Dokku for hosting PHP apps to simplify the process of upgrading code. I mostly followed guide http://www.broculos.net/2015/12/dokku-how-to-deploy-vanilla-php.html with a few exceptions (using the apache2 handler, adding persistent volumes for storing uploads, etc.)

Scalling app deployed to Dokku

I am trying various open source PaaS based on Docker and so far the easiest one is Dokku.

The problem with Dokku is that it does not manage scaling of your app by launching more containers with yours application. You can install third-party plugins, which will start multiple processes inside single docker container, but this doesn't work well for web apps listening on one port. And I could not find how to leverage SO_REUSEPORT in Express.js app.