A reference repo for my Django Projects
- Django + Django Rest Framework
- Redis
- Celery
- Elasticsearch
- Nginx
- PostgreSQL
- Minio
- Gunicorn
- Kibana
- Logstash
- Filebeat
- Prometheus
- Upload
- Permissions
- Login with JWT
- Create a
.env.dev
and.env-db.dev
files. Use the.env
and.env-db
as reference - Run
chmod +x
toentrypoint.sh
andentrypoint.prod.sh
- Run
docker-compose up
to start the app.
- Build a Dockerfile for dev and production
- Create a docker-compose.yml for dev and production
- Configure docker-elk
- repo came from https://github.com/deviantony/docker-elk
- in the
elasticsearch/config/elasticsearch.yml
set thexpack.license.self_generated.type
fromtrial
tobasic
- tutorial: https://gonzalo123.com/2020/08/10/monitoring-django-applications-with-grafana-and-kibana-using-prometheus-and-elasticsearch/
- Configure Prometheus:
- reference repo came from https://github.com/dotja/django-prometheus-docker
- refer to the following link: https://www.youtube.com/watch?v=86js4POzTV4
- Integrate file upload with Minio
- Integrate file CRUD ops with Minio
- Add type hints / annotations to customized code