/django-docker-compose-deploy

get start django docker example app

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

django-docker-compose-deploy

get start django docker example app

Clone the repo

git clone https://github.com/shadhin-int/django-docker-compose-deploy

Create virtual environment and activate venv in project

$ python -m venv venv
$ source venv/bin/activate

Install project dependencies and configure .env file

- Create *.env* file and copy *.env.example* and update all data
$ pip install -r requirements.txt

commands:

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