Run Camunda BPM on Google Cloud Run

Ruslan Gainutdinov
4 min readApr 13, 2019

Recently Google Cloud launched a new (beta) service to run serverless container-based applications. This service does not require you to do complex platform-specific packaging. You just need to create a Docker container which follows Cloud Run container contract.

New to Camunda?

Camunda is an awesome workflow automation platform which allows you to orchestrate complex microservice interactions and human-oriented actions across different applications and platforms.

New to Cloud Run?

Here is a short explanation of what a Cloud Run is

Google Cloud Run
Introduction to Google Cloud Run

Already got a Google Cloud account? Run Camunda in 5 minutes using 5 lines on the terminal. I`ve used my open source repo so you can deploy it and use immediately.

Setup default Google Cloud project

You need to select the default project you will launch Cloud Run in. Use project-id from

> gcloud config set project <your-project-id>

Enable beta components for gcloud CLI

As Cloud Run is in beta state now, to enable it in CLI you need to download and install beta commands.

> gcloud components install beta

Enable Cloud Run for the current project

Enable this specific APIs either using CLI or

> gcloud services enable

Set default region for Cloud Run

Choose default region for Cloud Run. Currently, only us-central1 region is supported.

> gcloud config set run/region us-central1

Run Camunda BPM 7.10

Use Camunda BPM image based on Spring Boot

> gcloud beta run deploy --image --memory=1G
Service name: (camunda-bpm-platform): mycamunda
Deploying container to Cloud Run service [mycamunda] in project [<your-project-id>] region [us-central1]
Allow unauthenticated invocations to new service [mycamunda]? (y/N)? Y
✓ Deploying new service…
✓ Creating Revision…
✓ Routing traffic…
Service [mycamunda] revision [mycamunda–00001] has been deployed and is serving traffic at

(link are an example only, you will get your own link when you run a command)

Boom! You have a running serverless Camunda BPM 🎉🎉 When you open link in the browser you will find launchpad with links for most useful prepackaged resources

After Camunda launches, visit Google Cloud Console for logs and look for the line containing a randomly generated password:

========= YOUR CAMUNDA PASSWORD IS cafebeef =========

alternatively, you can define password using variables during startup i.e. CAMUNDA_PWD

gcloud beta run deploy --image \
--memory=1G \

The default username is demo, you can login by clicking Cockpit on the Launchpad

After login, feel free to look around and explore processes and instances

Cockpit to monitor deployed processes

You can run new instances by going to Tasklist and starting a new process

Starting process from Tasklist

Production notes

By default, Camunda docker container uses an embedded database for process definitions and instances. Therefore, on every restart of the service (either because of elastic scaling or after a period of inactivity) all the persistent changes will be lost.

To configure an external, cloud-hosted persistent database, change Camunda Spring Boot configuration settings


About the author

Ruslan is the Tech Lead at the Futurice working on backend, architecture and cloud projects.



Ruslan Gainutdinov

Offering full-stack web development, AI/ML inference and cloud architecture services. Building Valosan, PR CRM to build relationships with the media.