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
Newsletter
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

  • Choosing a BBD Framework
  • Member Spotlight: Shai Almong
  • Spring Security JWT Validation Best Practices
  • Building Enterprise Authentication with Angular, Spring Boot, SSO, and MFA

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Sep. 20, 21 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
10.3K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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