Deployment
Deploying a Comet application requires a couple of microservices. The following sections describe the necessary services and how to deploy them.
IDP
Any OIDC-compliant Identity Provider (such as Auth0) can be used with Comet DXP.
Database
We recommend a managed PostgreSQL database such as Azure Database for PostgreSQL or PostgreSQL on Digital Ocean. Managed databases are easier to maintain and scale as they provide automatic backups, monitoring, and scaling.
For those with budget constraints, the database can be included in the Docker Compose setup for the API, Admin, and Site.
Asset Storage
We recommend using a managed object storage service like Azure Blob Storage or Digital Ocean Spaces.
For those with budget constraints, the asset storage can be included in the Docker Compose setup for the API, Admin, and Site, either as a mounted volume or as S3-compatible storage.
API, Admin, Site, oauth2-proxy and imgproxy
There are several ways to deploy these microservices. The best deployment method depends on your budget and requirements.
Kubernetes
Comet DXP is a cloud-native CMS, so Kubernetes is the preferred way to deploy a Comet application, as it provides the most flexibility and supports all enterprise requirements. However, it is usually the most expensive way.
We provide Helm Charts, which are available on GitHub, for easy deployment.
Hosting without Kubernetes
Comet applications can also be deployed without Kubernetes. Two options are serverless container platforms (e.g., Azure Container Apps or Digital Ocean App Platform) or Docker Compose.
It's important to note that deploying without Kubernetes comes with its own set of limitations. You won't be able to use the KubernetesModule
. Additionally, CronJobs must be handled differently and might require an external service. Consequently, you won't be able to use the CronJobModule
.
Serverless
Serverless container platforms are a good option for those who want to deploy Comet applications without the complexity of Kubernetes. They are usually cheaper than Kubernetes and provide automatic scaling. An example deployment for the Digital Ocean App Platform can be found here.
Docker Compose
For those with budget constraints, Docker Compose can be a viable option for deploying Comet applications.