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

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

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

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Running Camunda With Postgres Using Docker
  • Docker Model Runner: Streamlining AI Deployment for Developers
  • A Guide to Container Runtimes
  • Gemma 3: Unlocking GenAI Potential Using Docker Model Runner

Trending

  • Integrating Security as Code: A Necessity for DevSecOps
  • A Complete Guide to Modern AI Developer Tools
  • Mastering Advanced Traffic Management in Multi-Cloud Kubernetes: Scaling With Multiple Istio Ingress Gateways
  • The Human Side of Logs: What Unstructured Data Is Trying to Tell You
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Running Camunda with MySQL in Docker Container

Running Camunda with MySQL in Docker Container

In this article, we'll run a Camunda bpm platform connecting to MySQL Database in the Docker container. We'll use the MySQL client to verify the Camunda database.

By 
Alok Singh user avatar
Alok Singh
DZone Core CORE ·
Sep. 16, 21 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
7.0K Views

Join the DZone community and get the full member experience.

Join For Free

In this article, we are going to run a Camunda bpm platform connecting to MySQL Database within the Docker container. At the same time, we'll use the MySQL client (workbench) to verify the Camunda database (Although the same can be done by Docker CLI for MySQL as well). 

Below is the list of packages that you need to add before proceeding:

a) Download and install Docker-desktop

b) Download and install MySQL workbench (Optional, To verify the installation of MySQL in docker)

STEP-1: Running MySQL in Docker container

Run the below command in command prompt to run MySQL in Docker Container with name "mysql".

docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysqladmin -d mysql/mysql-server:latest

Note: Set up your own password for MySQL instead of mysqladmin in the above command.

Open the Docker desktop app and verify MYSQL is running on the docker container.

Docker Container

STEP-2: Connecting MySQL Workbench with Docker container

a) Open CLI command prompt of mysql as highlighted.

Connecting MySQL Workbench with Docker containerb) Enter command mysql -u root -p press enter and enter the password as mysqladmin (OR as given in step-1). You will be connected to mysql console.

Connecting to MYSQL Console

Note: On this console, also we can validate the Camunda database later using mysql commands hence steps 2-c, 2-d and 2-e are completely optional.

c) To connect MySQL with the workbench need to execute the below command on the MySQL console.

update mysql.user set host = '%' where user='root';

d) Open MySQL workbench and enter the details as below. Use password as provided in step-1.

MYSQL Workbench

e) Connect to MySQL Database.

MYSQL Database

f) Create a new schema in MySQL say named "mydb" using the below command.

create database mydb;

Creating Schema MYSQL

g) Verify the database is created and having no tables.

Verifying databases

Step-3: Running Camunda BPM

a) Open command prompt and execute the below command to start Camunda in docker container name as "camunda-mysql-env ".

docker run -d --name camunda-mysql-env -p 8080:8080 --link mysql:db -e DB_DRIVER=com.mysql.cj.jdbc.Driver -e DB_URL=jdbc:mysql://db:3306/mydb?autoReconnect=true -e DB_USERNAME=root -e DB_PASSWORD=mysqladmin -e WAIT_FOR=db:3306 camunda/camunda-bpm-platform:latest

Running Camunda BPM

b) Refresh the database and check for Camunda tables are created inside "mydb" database. The same can be verified in Docker CLI (for MySQL) also.

Checking Camunda Tables

The same can be verified using CLI as well.

Checking Camunda Tables Using CLI

c) Open the browser and check if the Camunda application is running at http://localhost:8080/camunda/.

Checking Camunda Application

Thanks for reading!!!

Docker (software) MySQL Workbench Camunda

Opinions expressed by DZone contributors are their own.

Related

  • Running Camunda With Postgres Using Docker
  • Docker Model Runner: Streamlining AI Deployment for Developers
  • A Guide to Container Runtimes
  • Gemma 3: Unlocking GenAI Potential Using Docker Model Runner

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!