/django-container

Containerized generic django app.

Primary LanguagePython

Django containerized web service

Template of containerized Django application.

Features:

  • docker-compose.yml for fast running component (running with or without database).
  • docker-compose.test.yaml for tests running.
  • Working connection to MySQL.
  • SQLite for running tests with database.
  • Logging in json format supporting Logstash.

Usage

Using docker-composer:

docker-compose build
docker-compose up

Urls

Run tests

docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml up

See tips and tricks used here.