-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (78 loc) · 2.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
95 lines (78 loc) · 2.74 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# ── Business Multi-Agent — docker-compose.yml ────────────────────────────────
#
# Single service: the api_server.py REST API + Teams Bot Framework webhook.
# The Microsoft Teams UI is the frontend — there is no web frontend in this app.
#
# Usage:
# docker compose up --build # build and start
# docker compose up # start (image already built)
# docker compose down # stop
#
# Prerequisites:
# Copy .env.example → .env and fill in all credentials before running.
# ─────────────────────────────────────────────────────────────────────────────
services:
# ── Business Multi-Agent API + Teams Bot ────────────────────────────────────
api:
build:
context: .
dockerfile: Dockerfile
image: business-multiagent:latest
container_name: business-api
restart: unless-stopped
# Load credentials from .env file (git-ignored)
env_file: .env
environment:
CAMUNDA_REST_URL: http://camunda:8080/engine-rest
BUSINESS_OUTPUT_DIR: /app/business_output
# Port 8000: REST API + Teams Bot Framework /api/messages
ports:
- "8000:8000"
volumes:
# Persist generated documents, diagrams, and BPMN files
- business_output:/app/business_output
depends_on:
camunda:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
# ── Camunda BPM (optional — disable if you don't use BPMN features) ─────────
camunda:
image: camunda/camunda-bpm-platform:run-latest
container_name: business-camunda
restart: unless-stopped
environment:
# Enable H2 in-memory DB for development; switch to Postgres for production
- DB_DRIVER=org.h2.Driver
- DB_URL=jdbc:h2:./camunda-h2-database
- DB_USERNAME=sa
- DB_PASSWORD=
ports:
- "8999:8080"
volumes:
- camunda_data:/camunda/configuration/userlib
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/engine-rest/engine"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
business_output:
driver: local
camunda_data:
driver: local