Production-ready Docker environment

At Django Easystart, we’re all about making your life as a developer easier. That’s why we’ve included a section in this documentation about Docker production-ready images, which come included with Django Easystart and use Nginx and Gunicorn for deployment.

Using Docker images allows you to package your application with all its dependencies and configurations, making it easy to deploy to any environment. It also helps ensure that your application is consistent and behaves the same way across different environments. With our Docker images, you can easily create and deploy your Django Easystart application in production, without worrying about dependencies, configuration, or compatibility issues.

In this section, we’ll show you how to build your Django Easystart application using our Docker images.

Build the production containers

docker-compose -f docker-compose.prod.yml build --no-cache

Load the Production Server

docker-compose -f docker-compose.prod.yml up -d

Run migrations

docker-compose -f docker-compose.prod.yml exec app python manage.py migrate --noinput

Load fixtures

docker-compose -f docker-compose.prod.yml exec app python manage.py loaddata fixtures/*.json

Load production server

Open your browser at http://localhost:9000