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 6 months ago
.env exemplary .env file 8 months ago
.gitignore small fix for gitignore 7 months ago
Dockerfile improved Dockerfile 6 months ago
README.md first experimental version; TODO: static files 8 months ago
create_superuser.sh first commit 8 months ago
docker-compose.yml added small documentation & removed grappelli 7 months ago
nginx.conf production-ready setup 8 months ago
requirements.txt added small documentation & removed grappelli 7 months ago
start_architecture.sh small fix for production 8 months ago

README.md

Constructa

Preface

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

Requirements:

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

Deployment:

  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 0.0.0.0:80: 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