-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
# Camunda 流程引擎
camunda:
image: camunda/camunda-bpm-platform:7.20-tomcat
container_name: camunda-engine
ports:
- "8080:8080"
environment:
# Camunda 认证配置
CAMUNDA_BPM_RUN_ADMIN_INITIAL_USERS: |
- userId: demo
password: demo
firstName: Demo
lastName: User
email: demo@example.com
volumes:
# 持久化 H2 数据库
- camunda-data:/opt/camunda/engine-rest/WEB-INF
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/engine-rest/engine"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- flow-worker-network
# Flow Worker 应用
flow-worker:
build:
context: .
dockerfile: Dockerfile
container_name: flow-worker
depends_on:
camunda:
condition: service_healthy
environment:
# Camunda 配置
CAMUNDA_BASE_URL: http://camunda:8080/engine-rest
WORKER_ID: cloud-host-worker
CAMUNDA_USERNAME: admin
CAMUNDA_PASSWORD: admin
# 日志配置
LOGGING_LEVEL_ROOT: INFO
LOGGING_LEVEL_COM_EXAMPLE_WORKER: DEBUG
ports:
- "8081:8080"
networks:
- flow-worker-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/engine-rest/engine"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
volumes:
camunda-data:
driver: local
networks:
flow-worker-network:
driver: bridge