|
| 1 | +# While the Docker images themselves are supported for production usage, |
| 2 | +# this docker-compose.yaml is designed to be used by developers to run |
| 3 | +# an environment locally. It is not designed to be used in production. |
| 4 | +# We recommend to use Kubernetes in production with our Helm Charts: |
| 5 | +# https://docs.camunda.io/docs/self-managed/platform-deployment/kubernetes-helm/ |
| 6 | +# For local development, we recommend using KIND instead of `docker-compose`: |
| 7 | +# https://docs.camunda.io/docs/self-managed/platform-deployment/helm-kubernetes/guides/local-kubernetes-cluster/ |
| 8 | + |
| 9 | +# This is a lightweight configuration with Zeebe, Operate, Tasklist, and Elasticsearch |
| 10 | +# See docker-compose.yml for a configuration that also includes Optimize, Identity, and Keycloak. |
| 11 | + |
| 12 | +services: |
| 13 | + |
| 14 | + zeebe: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#zeebe |
| 15 | + image: camunda/zeebe:${CAMUNDA_ZEEBE_VERSION} |
| 16 | + container_name: zeebe |
| 17 | + ports: |
| 18 | + - "26500:26500" |
| 19 | + - "9600:9600" |
| 20 | + - "8088:8080" |
| 21 | + environment: # https://docs.camunda.io/docs/self-managed/zeebe-deployment/configuration/environment-variables/ |
| 22 | + - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_CLASSNAME=io.camunda.zeebe.exporter.ElasticsearchExporter |
| 23 | + - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_URL=http://elasticsearch:9200 |
| 24 | + # default is 1000, see here: https://github.com/camunda/zeebe/blob/main/exporters/elasticsearch-exporter/src/main/java/io/camunda/zeebe/exporter/ElasticsearchExporterConfiguration.java#L259 |
| 25 | + - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_BULK_SIZE=1 |
| 26 | + # allow running with low disk space |
| 27 | + - ZEEBE_BROKER_DATA_DISKUSAGECOMMANDWATERMARK=0.998 |
| 28 | + - ZEEBE_BROKER_DATA_DISKUSAGEREPLICATIONWATERMARK=0.999 |
| 29 | + - "JAVA_TOOL_OPTIONS=-Xms512m -Xmx512m" |
| 30 | + restart: unless-stopped |
| 31 | + healthcheck: |
| 32 | + test: [ "CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/9600' || exit 1" ] |
| 33 | + interval: 30s |
| 34 | + timeout: 5s |
| 35 | + retries: 5 |
| 36 | + start_period: 30s |
| 37 | + volumes: |
| 38 | + - zeebe:/usr/local/zeebe/data |
| 39 | + networks: |
| 40 | + - camunda-platform |
| 41 | + depends_on: |
| 42 | + - elasticsearch |
| 43 | + |
| 44 | + operate: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#operate |
| 45 | + image: camunda/operate:${CAMUNDA_OPERATE_VERSION} |
| 46 | + container_name: operate |
| 47 | + ports: |
| 48 | + - "8081:8080" |
| 49 | + environment: # https://docs.camunda.io/docs/self-managed/operate-deployment/configuration/ |
| 50 | + - CAMUNDA_OPERATE_ZEEBE_GATEWAYADDRESS=zeebe:26500 |
| 51 | + - CAMUNDA_OPERATE_ELASTICSEARCH_URL=http://elasticsearch:9200 |
| 52 | + - CAMUNDA_OPERATE_ZEEBEELASTICSEARCH_URL=http://elasticsearch:9200 |
| 53 | + - CAMUNDA_OPERATE_CSRFPREVENTIONENABLED=false |
| 54 | + - management.endpoints.web.exposure.include=health |
| 55 | + - management.endpoint.health.probes.enabled=true |
| 56 | + healthcheck: |
| 57 | + test: [ "CMD-SHELL", "wget -O - -q 'http://localhost:9600/actuator/health/readiness'" ] |
| 58 | + interval: 30s |
| 59 | + timeout: 1s |
| 60 | + retries: 5 |
| 61 | + start_period: 30s |
| 62 | + networks: |
| 63 | + - camunda-platform |
| 64 | + depends_on: |
| 65 | + - zeebe |
| 66 | + - elasticsearch |
| 67 | + |
| 68 | + tasklist: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#tasklist |
| 69 | + image: camunda/tasklist:${CAMUNDA_TASKLIST_VERSION} |
| 70 | + container_name: tasklist |
| 71 | + ports: |
| 72 | + - "8082:8080" |
| 73 | + environment: # https://docs.camunda.io/docs/self-managed/tasklist-deployment/configuration/ |
| 74 | + - CAMUNDA_TASKLIST_ZEEBE_GATEWAYADDRESS=zeebe:26500 |
| 75 | + - CAMUNDA_TASKLIST_ZEEBE_RESTADDRESS=http://zeebe:8080 |
| 76 | + - CAMUNDA_TASKLIST_ELASTICSEARCH_URL=http://elasticsearch:9200 |
| 77 | + - CAMUNDA_TASKLIST_ZEEBEELASTICSEARCH_URL=http://elasticsearch:9200 |
| 78 | + - CAMUNDA_TASKLIST_CSRFPREVENTIONENABLED=false |
| 79 | + - management.endpoints.web.exposure.include=health |
| 80 | + - management.endpoint.health.probes.enabled=true |
| 81 | + healthcheck: |
| 82 | + test: [ "CMD-SHELL", "wget -O - -q 'http://localhost:9600/actuator/health/readiness'" ] |
| 83 | + interval: 30s |
| 84 | + timeout: 1s |
| 85 | + retries: 5 |
| 86 | + start_period: 30s |
| 87 | + networks: |
| 88 | + - camunda-platform |
| 89 | + depends_on: |
| 90 | + - zeebe |
| 91 | + - elasticsearch |
| 92 | + |
| 93 | + connectors: # https://docs.camunda.io/docs/components/integration-framework/connectors/out-of-the-box-connectors/available-connectors-overview/ |
| 94 | + image: camunda/connectors-bundle:${CAMUNDA_CONNECTORS_VERSION} |
| 95 | + container_name: connectors |
| 96 | + ports: |
| 97 | + - "8085:8080" |
| 98 | + environment: |
| 99 | + - ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS=zeebe:26500 |
| 100 | + - ZEEBE_CLIENT_SECURITY_PLAINTEXT=true |
| 101 | + - CAMUNDA_OPERATE_CLIENT_URL=http://operate:8080 |
| 102 | + - CAMUNDA_OPERATE_CLIENT_USERNAME=demo |
| 103 | + - CAMUNDA_OPERATE_CLIENT_PASSWORD=demo |
| 104 | + - management.endpoints.web.exposure.include=health |
| 105 | + - management.endpoint.health.probes.enabled=true |
| 106 | + healthcheck: |
| 107 | + test: [ "CMD-SHELL", "curl -f http://localhost:8080/actuator/health/readiness" ] |
| 108 | + interval: 30s |
| 109 | + timeout: 1s |
| 110 | + retries: 5 |
| 111 | + start_period: 30s |
| 112 | + env_file: connector-secrets.txt |
| 113 | + networks: |
| 114 | + - camunda-platform |
| 115 | + depends_on: |
| 116 | + - zeebe |
| 117 | + - operate |
| 118 | + |
| 119 | + elasticsearch: # https://hub.docker.com/_/elasticsearch |
| 120 | + image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} |
| 121 | + container_name: elasticsearch |
| 122 | + ports: |
| 123 | + - "9200:9200" |
| 124 | + - "9300:9300" |
| 125 | + environment: |
| 126 | + - bootstrap.memory_lock=true |
| 127 | + - discovery.type=single-node |
| 128 | + - xpack.security.enabled=false |
| 129 | + # allow running with low disk space |
| 130 | + - cluster.routing.allocation.disk.threshold_enabled=false |
| 131 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 132 | + ulimits: |
| 133 | + memlock: |
| 134 | + soft: -1 |
| 135 | + hard: -1 |
| 136 | + restart: unless-stopped |
| 137 | + healthcheck: |
| 138 | + test: [ "CMD-SHELL", "curl -f http://localhost:9200/_cat/health | grep -q green" ] |
| 139 | + interval: 30s |
| 140 | + timeout: 5s |
| 141 | + retries: 3 |
| 142 | + volumes: |
| 143 | + - elastic:/usr/share/elasticsearch/data |
| 144 | + networks: |
| 145 | + - camunda-platform |
| 146 | + |
| 147 | + kibana: |
| 148 | + image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION} |
| 149 | + container_name: kibana |
| 150 | + ports: |
| 151 | + - 5601:5601 |
| 152 | + volumes: |
| 153 | + - kibana:/usr/share/kibana/data |
| 154 | + networks: |
| 155 | + - camunda-platform |
| 156 | + depends_on: |
| 157 | + - elasticsearch |
| 158 | + profiles: |
| 159 | + - kibana |
| 160 | + |
| 161 | +volumes: |
| 162 | + zeebe: |
| 163 | + elastic: |
| 164 | + kibana: |
| 165 | + |
| 166 | +networks: |
| 167 | + camunda-platform: |
0 commit comments