Uses the default Django development server.
-
.env.dev Configuration settings for Development(Debug on, localhost)
-
docker-compose.yml docker file for development(mounted app volume)
-
Build the images and run the containers:
$ docker-compose up -d --build
Test it out at http://localhost:8000. The "app" folder is mounted into the container and your code changes apply automatically.
Uses gunicorn + nginx.
-
.env.prod and .env.prod.db are Production configuration files for Docker and Database settings
-
Build the images and run the containers:
$ docker-compose -f docker-compose.prod.yml up -d --build
Test it out at http://localhost:1337. No mounted folders.
Example on loading users fixtures from Django manage.py of the running container web-app
$ docker-compose -f docker-compose.prod.yml exec web python manage.py loaddata fixtures/users.json