Example Docker Architecture for deploying the Consulta Backend on Linux Server Environments
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crunch 7b604c2b83 improved Dockerfile 2 years ago
.env exemplary .env file 2 years ago
.gitignore small fix for gitignore 2 years ago
Dockerfile improved Dockerfile 2 years ago
README.md first experimental version; TODO: static files 2 years ago
create_superuser.sh first commit 2 years ago
docker-compose.yml added small documentation & removed grappelli 2 years ago
nginx.conf production-ready setup 2 years ago
requirements.txt added small documentation & removed grappelli 2 years ago
start_architecture.sh small fix for production 2 years ago




This Repository is only for production use! Do not try to deploy this at your local dev setup as it will fail!


  • git, python3, pip3, virtualenv, Docker, docker-compose


  1. Fulfill Requirements above
  2. Clone this repo
  3. Execute start_architecture.sh

Renewing certificate:

  1. Check if there is no other process listening on port 80 than nginx in the docker environment (script will shut down docker environment so you do not need to stop it yourself)
  2. Execute renew_certificate.sh

Deployed Services:

  • Postgres
  • nginx
  • Django and Gunicorn in one container

Known Issues:

  • "Error starting Userland proxy: listen tcp bind: address already in use": nginx or some other process is listening on port 80, check for process with netstat | grep 80 or top | grep nginx