DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Streamlining Database Management: Running PostgreSQL in Docker Containers
  • Getting Started With Postgres: Three Free and Easy Ways
  • How To Run the Latest Version of PostgreSQL Using Docker
  • Lessons Learned Moving From On-Prem to Cloud Native

Trending

  • Building Production-Grade GenAI on GCP with Vertex AI Agent Builder
  • A 5-Step SOC Guide That Meets RBI Expectations and Strengthens Security Operations
  • How Rule Engines Transform Business Agility and Code Simplicity
  • Why Good Models Fail After Deployment
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Running Camunda With Postgres Using Docker

Running Camunda With Postgres Using Docker

This tutorial explains how to connect the Camunda BPM platform to the Postgres Database using Docker in just four total steps.

By 
Alok Singh user avatar
Alok Singh
·
Sep. 20, 21 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
10.1K Views

Join the DZone community and get the full member experience.

Join For Free

Introduction

Let's connect the Camunda BPM platform to Postgres Database using Docker. Below are the packages which are used in this article.

  • Docker Desktop for Windows (download Docker-desktop)
  • pgAdmin v4 (Download link)

Step 1:

Install Docker-desktop and pgAdmin downloaded as above.

Step 2: 

Running Postgres in Docker container:

a) Open command prompt and execute the below command to run the Postgres in a docker container named "Postgres."

docker run --name postgres -e POSTGRES_PASSWORD=postgres-password -d postgres

Note: Choose a password for the Postgres database.

Open the docker-desktop to see a container with the name "Postgres" is running.

Postgres screenshot.

Step 3: 

Running Camunda in Docker container:

Below are the 2 steps given to run a Camunda in a docker container. a) Supplying DB credentials as command line arguments b) Supplying DB credentials using a text file.

a) Open command prompt and execute the below command to run the Camunda in a docker container named "Camunda-postgres-env."

docker run -d --name Camunda-postgres-env -p 8080:8080 --link postgres:db -e DB_DRIVER=org.postgresql.Driver -e DB_URL=jdbc:postgresql://db:5432/postgres -e DB_USERNAME=postgres -e DB_PASSWORD=postgres-password -e WAIT_FOR=db:5432 Camunda/Camunda-bpm-platform:latest

b) Alternate way to pass DB details to run Camunda. Save the below properties in a file named as say, "dev-env.txt."

DB_DRIVER=org.postgresql.Driver

DB_URL=jdbc:postgresql://db:5432/postgres

DB_USERNAME=postgres

DB_PASSWORD=postgres-password

WAIT_FOR=db:5432

And, execute the below command to run the Camunda in a docker container named "Camunda-postgres-env-file."

docker run -d --name Camunda-postgres-env-file -p 8080:8080 --link postgres:db --env-file dev-env.txt Camunda/Camunda-bpm-platform:latest

Note: Update Postgres database password in the above command.

Verify in the docker-desktop app for the running Camunda.

Step 4: 

Connecting to Postgres database to verify the connection and Camunda database/ tables.

a) Open pgAdmin application and enter the connection details as below:

Connection details screenshot.

b) Save the details and verify in tables where Camunda tables are in place.

Verification screenshot.


Step 5: 

Open the browser and type in the URL to see Camunda app running.

Camunda welcome screen.Hope this helps!

Docker (software) Camunda PostgreSQL

Opinions expressed by DZone contributors are their own.

Related

  • Streamlining Database Management: Running PostgreSQL in Docker Containers
  • Getting Started With Postgres: Three Free and Easy Ways
  • How To Run the Latest Version of PostgreSQL Using Docker
  • Lessons Learned Moving From On-Prem to Cloud Native

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook