-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Start everything:
# docker compose up -d
#
# This starts the platform, deploys all BPMN processes, and runs the workers.
services:
zenbpm:
image: ghcr.io/pbinitiative/zenbpm:latest
environment:
- CONFIG_FILE=/var/zenbpm/zen-conf.yaml
volumes:
- ./conf/zenbpm/conf.yaml:/var/zenbpm/zen-conf.yaml
ports:
- "8080:8080"
- "9090:9090"
healthcheck:
test: ["CMD-SHELL", "bash -c 'echo > /dev/tcp/localhost/8080'"]
interval: 3s
timeout: 3s
retries: 10
start_period: 10s
zenbpm-ui:
image: ghcr.io/pbinitiative/zenbpm-ui:demo_20260205_latest
ports:
- "9000:80"
depends_on:
zenbpm:
condition: service_healthy
deploy:
image: curlimages/curl:latest
depends_on:
zenbpm:
condition: service_healthy
volumes:
- ./examples:/examples:ro
entrypoint: ["/bin/sh", "-c"]
command:
- |
echo "Deploying all BPMN processes..."
for f in /examples/processes/*/*.bpmn; do
[ -f "$$f" ] || continue
echo " -> $$f"
curl -sfS -X POST http://zenbpm:8080/v1/process-definitions -F "resource=@$$f"
echo ""
done
echo "All processes deployed."
workers:
build: ./examples/workers
environment:
ZENBPM_GRPC_ADDR: zenbpm:9090
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
depends_on:
zenbpm:
condition: service_healthy