-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (102 loc) · 2.67 KB
/
docker-compose.yml
File metadata and controls
110 lines (102 loc) · 2.67 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
nats:
image: nats:2.10-alpine
command: ["-js"]
ports:
- "4222:4222"
restart: unless-stopped
otel-collector:
image: otel/opentelemetry-collector:0.102.1
command: ["--config=/etc/otelcol/config.yaml"]
volumes:
- ./otel-local.yaml:/etc/otelcol/config.yaml:ro
ports:
- "4318:4318"
restart: unless-stopped
opa:
image: openpolicyagent/opa:latest # valid tag; rootless is default behavior
command: ["run","-s","-a","0.0.0.0:8181","/policy"] # serve HTTP on :8181, load all policies from /policy
volumes:
- ./policy/policy.rego:/policy/policy.rego:ro
ports:
- "8181:8181"
restart: unless-stopped
api-orders:
build:
context: .
dockerfile: api-orders/Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
- otel-collector
ports:
- "8001:8000"
restart: unless-stopped
api-payments:
build:
context: .
dockerfile: api-payments/Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
- otel-collector
ports:
- "8002:8000"
restart: unless-stopped
api-inventory:
build:
context: .
dockerfile: api-inventory/Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
- otel-collector
ports:
- "8003:8000"
restart: unless-stopped
api-notifications:
build:
context: .
dockerfile: api-notifications/Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
- otel-collector
ports:
- "8004:8000"
restart: unless-stopped
data-service:
build:
context: .
dockerfile: data-service/Dockerfile
environment:
NATS_URL: nats://nats:4222
ETL_SUBJECT: etl.jobs
depends_on:
- nats
restart: unless-stopped
agentfabric:
build:
context: .
dockerfile: agent/Dockerfile
image: agentfabric-orchestrator:latest
environment:
INVENTORY_URL: http://api-inventory:8000
ORDERS_URL: http://api-orders:8000
PAYMENTS_URL: http://api-payments:8000
NOTIFY_URL: http://api-notifications:8000
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
# OPA rule path matches your policy package "agent" with rule "allow"
OPA_URL: http://opa:8181/v1/data/agent/allow
# AGENT_JWT_SECRET: "change-me"
depends_on:
- nats
- otel-collector
- opa
- api-orders
- api-payments
- api-inventory
- api-notifications
ports:
- "8000:8000"
restart: unless-stopped