Adapt for use in dokku-alt project.