-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (78 loc) · 3.05 KB
/
docker-compose.yml
File metadata and controls
85 lines (78 loc) · 3.05 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
version: "3.9"
# ─────────────────────────────────────────────────────────────────────────────
# CHESS Federated Knowledge Fabric Node
# Starts all four services with the correct inter-service URLs.
#
# Usage:
# docker compose up --build
# ─────────────────────────────────────────────────────────────────────────────
x-common-env: &common-env
NODE_ID: "chess-node"
NODE_NAME: "CHESS Federated Knowledge Fabric Node"
services:
# ── L1/L3/L4 Self-description ───────────────────────────────────────────────
catalog:
build: ./services/catalog-service
container_name: chess-catalog
ports:
- "8781:8781"
environment:
<<: *common-env
PORT: "8781"
NODE_BASE_URL: "http://localhost:8781"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8781/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# ── SPARQL / Triple store ────────────────────────────────────────────────────
data:
build: ./services/data-service
container_name: chess-data
ports:
- "8782:8782"
environment:
<<: *common-env
PORT: "8782"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8782/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# ── DID / Verifiable Credentials identity ───────────────────────────────────
identity:
build: ./services/identity-service
container_name: chess-identity
ports:
- "8783:8783"
environment:
<<: *common-env
PORT: "8783"
NODE_BASE_URL: "http://localhost:8783"
CATALOG_URL: "http://catalog:8781"
DATA_URL: "http://data:8782"
NOTIFICATION_URL: "http://notifications:8784"
depends_on:
catalog:
condition: service_healthy
data:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8783/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# ── LDN notification inbox ───────────────────────────────────────────────────
notifications:
build: ./services/notification-service
container_name: chess-notifications
ports:
- "8784:8784"
environment:
<<: *common-env
PORT: "8784"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8784/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5