Blue Green Deployment of Docker Compose Azure App

Umer Rashid 85 Reputation points
2024-03-25T07:44:05.7566667+00:00

I have a docker compose-based Azure App that makes use of Azure MySql Flexible Server and credentials stored in Azure Keyvault.

I am wondering if there are any guidelines for blue-green deployment of Docker Compose Azure App. I know Azure App's deployment slots can be allocated but that option is not available in Azure MySql Flexible Server.

What are the best practices to address this issue?

Regards,

Umar

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,093 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
708 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,768 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 4,270 Reputation points
    2024-03-25T08:21:01.2333333+00:00

    Hi,

    Blue-Green deployment is generally not applicable to database servers.

    Doing blue/green on a database is more of a mandate of "no breaking changes", than a technical solution. A database is generally too big to copy to a new server and swap out for every deployment, and not really necessary if you follow the rules of no breaking changes.

    I suggest you read this: https://spring.io/blog/2016/05/31/zero-downtime-deployment-with-a-database

    Kindly accept if it helps , Thanks

    0 comments No comments