-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.63 KB
/
docker-compose.yml
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
version: '3.7'
# Define services
services:
# FHIR server service
fhir:
# Use the latest HAPI FHIR image
image: hapiproject/hapi:latest
ports:
- "8180:8080"
# Enable REST hook for subscriptions
environment:
- hapi.fhir.subscription.resthook_enabled=true
# Connect the service to the hswfc network
networks:
- hswfc
# Define healthcheck to ensure service is running
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8180/fhir/metadata"]
interval: 60s
timeout: 10s
retries: 3
# Camunda engine service
camunda:
# Build the Camunda engine image from the local context
build:
context: ./engine/camunda
# Use the built Camunda engine image
image: camunda-engine
ports:
- "8080:8080"
# Connect the service to the hswfc network
networks:
- hswfc
# Define healthcheck to ensure service is running
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/engine-rest/engine"]
interval: 30s
timeout: 10s
retries: 3
# Workflow capability core service
wfc:
# Build the workflow capability core image from the local context
build:
context: ./workflow_capability_core
# Use the built workflow capability core image
image: workflow-capability-core
ports:
- "5003:5003"
# Connect the service to the hswfc network
networks:
- hswfc
# Ensure FHIR service is healthy before starting this service
depends_on:
fhir:
condition: service_healthy
# Define network for communication between services
networks:
hswfc:
driver: bridge