Skip to content

Docker API & Database

Frank Torres edited this page Jan 24, 2020 · 17 revisions

The API is served by Gunicorn and proxied to NGNIX for client consumption. It is recommended that you either update the provided nginx.conf prior to building the container to suit your deployment needs, or you proxy external traffic coming from your own web-server to exposed endpoint provided by the container.

  1. Build the docker containers
docker-compose build
  1. Run containers
docker-compose up
  1. Create user (in a separate terminal)
docker-compose run --no-deps web python manage.py createsuperuser

         Follow the prompts to create an application admin user.

Once the container is running, the application is exposed at http://localhost:1337