Skip to content

A simple-as-it-gets example of a Django web app with NGINX frontent and MySQL/MariaDB backend using docker-compose

License

Notifications You must be signed in to change notification settings

alextmz/simple-django-docker-app

Repository files navigation

simple-django-docker-app

A simple-as-it-gets example of a Django web app with NGINX frontent and MySQL/MariaDB backend, deployed by docker-compose.

The objective is to serve locally a simple content from a data source using common tools.

This is a simple, quick, do-not-use for production demonstrator. Security was not a thought.

To run:

1. Checkout code
2. docker-compose up
3. Browse to 127.0.0.1:8080

Notes:

  • If not using 127.0.0.1, update ALLOWED_HOSTS on djangoproject/settings.py
  • Checking for the DB to be up is crude, should be at app level (Django)
  • Python3 not used due to native Python3 MySQL client not yet available as alpine 3.8 package (but on edge-testing as py3-pymysql)
  • Security is pretty much non-existent

About

A simple-as-it-gets example of a Django web app with NGINX frontent and MySQL/MariaDB backend using docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published