Heroku environment replication in Docker (or another container)

I would like to have a local development environment, which is a clone of my Heroku environment, with the same dependencies, etc.

I can develop locally on my OSX machine, but I use brew to manage the packages, and it is very important that all versions are the same as my heroku installation.

My problem: I don't like deploying Heroku in my development environment every time I make changes. This really slows down my development time, expecting the pool to compile and deploy.

Is there a way to use Docker to accurately simulate what was on my Heroku stack? (PHP, Nginx, MongoDB ...) Has anyone done this or has a link to a tutorial?

thank

+4
source share
1 answer

You may consider dokku . It uses Heroku blocks by default, and you can add things like MongoDB instances using your plugin system (here is the dokku mongo plugin ).

0
source

Source: https://habr.com/ru/post/1545740/


All Articles