Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 631 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 631 Bytes

My DRF Skeleton with Docker

My own Django project skeleton with Django Rest framework ready for Docker.

Quickstart in Development

docker-compose up -d
docker-compose run restapi python manage.py migrate
docker-compose run restapi python manage.py createsuperuser

Then, django rest framwork will be available at docker-machine ip [your machine] on port 8000.

To create new app:

docker-compose run restapi python manage.py startapp my-app project/apps/my-app

Production

Depending on what you use:

docker build ./restapi your-app
docker tag your-app tag
docker push your-username/your-app:tag