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
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

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

  • Advancing Robot Vision and Control
  • Simplifying Multi-LLM Integration With KubeMQ
  • Understanding the Shift: Why Companies Are Migrating From MongoDB to Aerospike Database?
  • Supervised Fine-Tuning (SFT) on VLMs: From Pre-trained Checkpoints To Tuned Models
  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
DZone Core CORE ·
Sep. 20, 21 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
9.5K 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
Oops! Something Went Wrong

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!