Template of containerized Django application.
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.
Using docker-composer:
docker-compose build
docker-compose up
- Admin UI (login:
admin
,passwd
): http://localhost:8000 - Custom web page: http://localhost:8000/static
- HTTP interface: http://localhost:8000/write?value=a&desc=b
- Metrics for Prometheus: http://localhost:8000/metrics
- Swagger interactive doc: http://localhost:8000/swagger
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml up
See tips and tricks used here.