get start django docker example app
Clone the repo
git clone https://github.com/shadhin-int/django-docker-compose-deployCreate virtual environment and activate venv in project
$ python -m venv venv
$ source venv/bin/activateInstall project dependencies and configure .env file
- Create *.env* file and copy *.env.example* and update all data
$ pip install -r requirements.txtcommands:
docker-compose up
docker-compose run --rm app sh -c "python manage.py startapp foobar"
docker-compose run --rm app sh -c "python manage.py makemigrations foobar"
docker-compose run --rm app sh -c "python manage.py createsuperuser"
docker-comepose down -v