GithubHelp home page GithubHelp logo

camunda-stack's Introduction

Camunda Swarm Stack

This stack can be used as base to production Camunda 7 Run deployment.

Prerequisites

  • Server with at least 4vCPU and 10GB and sudo, git installed
  • Docker Swarm started and using rootless mode
  • A configured reverse proxy behind this stack, pointing <CAMUNDA_HOSTNAME> to <CAMUNDA_STACK_INGRESS_IP>:8080
  • An external PostgresSQL (15 tested) database
  • An external on-premise (.local) LDAP directory (Active Directory tested) for authentication and authorization users and groups

Steps to deploy

Database

  1. On Postgres host, create database and user (which need to be owner on Postgres 15):
sudo -u postgres psql
create database camunda;
create user camunda with encrypted password '<CAMUNDA_DB_PASS>';
grant all privileges on database camunda to camunda;
ALTER DATABASE camunda OWNER TO camunda;
  1. Enable remote connections on Postgres updating postgresql.conf and pg_hba.conf. To find the files location, use this:
sudo -u postgres psql -c 'SHOW config_file'

For more information, consult this:

https://stackoverflow.com/questions/18580066/how-to-allow-remote-access-to-postgresql-database

LDAP Directory

  1. Create a group named "camunda-admins" and include all camunda admin users.
  2. Create a service account to be the manager_dn who will connect to LDAP server (like Active Directory) - service.camunda@<YOUR_DOMAIN>.local - with read only rights.

Camunda Stack

  1. Create directories for project and change to "/app" directory:
sudo mkdir /app; \
sudo chown -R $USER:docker /app; \
sudo chmod -R 770 /app; \
cd /app
  1. Clone this repository
git clone <THIS_REPO_URL>.git
  1. Go to camunda stack folder:
cd /app/camunda-stack
  1. Update the values on camunda-stack.yml and default.yml accordingly to your infrastructure.
  2. Create secret to encrypt database password:
echo "<CAMUNDA_DB_PASS>" | docker secret create camunda_db_pass -
  1. Enable (only) necessary communications on your hosts and network gateways. This stack use port 8080. For example, to enable this port on your docker host using firewalld:
sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent; \
sudo firewall-cmd --reload
  1. Run the stack:
docker stack deploy -c camunda-stack.yml camunda
  1. Adjust directory/file permissions on docker host(s):
sudo chown -R 1000:1000 /app/camunda-stack; \
sudo chmod -R 440 /app/camunda-stack
  1. You can do more things in order to secure your deployment based on your infrastructure resources. Please, see this for more tips.

https://docs.camunda.org/manual/latest/user-guide/security/

Web apps endpoint

https://<CAMUNDA_HOSTNAME>/camunda

REST Endpoint

https://<CAMUNDA_HOSTNAME>/engine-rest

camunda-stack's People

Contributors

elimcosta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.