Example using Docker, Django, multiple Postgres databases, NginX, Gunicorn, pipenv, GitLab CI and tox.
- star 数
- 163
- watcher 数
- 10
- fork 数
- 72
- issue 数
- 0
- 最終更新
- 2023/09/27
Example using Docker, Django, multiple Postgres databases, NginX, Gunicorn, pipenv, GitLab CI and tox.
This is a Docker setup for a web application based on Django.
Pipfile and Pipfile.lock.DJANGO_SETTINGS_MODULE is passed
to the djangoapp service)..gitlab-ci.yml.
CI follows a Build-Test-Release flow. WARNING: this part is not fully functional yet.Also a Makefile is available for convenience. You might need to use sudo make
instead of just make because docker and docker-compose commands often needs
admin privilege.
You need to install Docker and Docker-Compose.
docker-compose build or make build.
docker-compose run --rm djangoapp hello/manage.py migrate or make migrate.
docker-compose run --rm djangoapp hello/manage.py collectstatic --no-input' or make collectstatic.
docker-compose up or make run.
make checksafetymake checkstylemake testmake coverageDocker Compose with NginX, Django, Gunicorn and multiple Postgres databases
Software licensed under the ISC license.