Get LaunchBase

Server Hosting Page!

This guide provides a general overview of deploying your Django SaaS boilerplate using Docker. The boilerplate includes a Dockerfile, facilitating easy deployment across multiple cloud hosting platforms that support containers.

Getting Started with Deployment

Your project comes with a Dockerfile pre-configured for deployment. This setup includes the necessary environment, dependencies, and commands to get your Django application up and running.


Configuring Allowed Hosts

When deploying your application, ensure you configure the ALLOWED_HOSTS setting in your settings.py to include the domain names where your application will be accessible. Most service will auto generate a temporary domain upon deployment. Example:

ALLOWED_HOSTS = ['yourdomain.com', 'www.yourdomain.com']

Setting Up the Domain

You will need to purchase a domain from a domain registrar and configure DNS settings to point to your hosted application. Most cloud platforms provide instructions on how to link your domain to their service.


Deployment Platforms

You can deploy your Docker container to any cloud platform that supports containerized apps. Here are some recommended platforms where you can host your application:

  • Digital Ocean: Known for simplicity, Digital Ocean allows easy deployment of Docker containers on their App Platform.

  • Render.com: A simpler cloud provider that offers native support for deploying web services using Docker.

  • Heroku: Supports easy Docker deployments with Heroku Containers.

  • AWS (Amazon Web Services): Offers services like ECS (Elastic Container Service) and EKS (Elastic Kubernetes Service) for container deployment.

  • Google Cloud Platform (GCP): Provides services such as Google Kubernetes Engine (GKE) and Cloud Run for running Docker containers.