marcelcaraciolo / heroku-docker-gunicorn-boilerplate

A boilerplate which demonstrates how to use React / Django with Gunicorn and Docker on Heroku.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Docker Gunicorn boilerplate Django CI

Deploy

This boilerplate provides an example of a React / Django (Client / Server) based application hosted on Heroku with a Gunicorn Django setup running in Docker.

Relevant files

The app.json file is there for specifiying all the dependencies of your Heroku application. These can be addon-specific ones (Postgres e.g.), environment variables which needs to be set or hardware specification for you dynamic created environments via Review Apps.

Find more about that file in the Heroku docs.

The Dockerfile combines the React Django application in a single Docker image. It first builds the client and then installs all the necessary dependencies for Django backend.

Find more about that file in the Heroku docs.

Via this file you combine the Dockerfile with your Heroku setup by instructing which Dockerfile should be used with which container. In our case we use the Dockerfile in the root directory as a web container which can act as a web server.

Find more about that file in the Heroku docs.

Other boilerplates for React / Django

About

A boilerplate which demonstrates how to use React / Django with Gunicorn and Docker on Heroku.


Languages

Language:Python 67.6%Language:JavaScript 14.0%Language:HTML 13.7%Language:Dockerfile 4.6%