-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
115 lines (110 loc) · 3.19 KB
/
docker-compose.yml
File metadata and controls
115 lines (110 loc) · 3.19 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
111
112
113
114
115
services:
otel-collector:
image: otel/opentelemetry-collector:latest
volumes:
- ./otel-collector-config.yaml:/etc/otelcol/config.yaml
ports:
- "4317:4317"
networks:
trace2e-net:
ipv4_address: 172.20.0.100
# User Node - Creates and sends CV
user-node:
build:
context: .
dockerfile: Dockerfile
container_name: user-node
hostname: user-node
networks:
trace2e-net:
ipv4_address: 172.20.0.10
environment:
- TRACE2E_MIDDLEWARE_URL=http://172.20.0.10:50051
- RUST_LOG=info,trace2e_core=debug
- OTEL_EXPORTER_OTLP_ENDPOINT=http://172.20.0.100:4317
- OTEL_SERVICE_NAME=trace2e_middleware
- OTEL_RESOURCE_ATTRIBUTES=node.id=172.20.0.10
volumes:
- ./demo/playbooks:/app/playbooks:ro
- ./demo/data:/app/data
- user-data:/tmp
command: /app/trace2e_middleware --address 172.20.0.10 --port 50051 --consent-timeout 30000
healthcheck:
test: ["CMD", "sh", "-c", "ss -tlnp | grep 50051"]
interval: 5s
timeout: 3s
retries: 5
depends_on:
- otel-collector
# Company Node - Receives CV, may forward
company-node:
build:
context: .
dockerfile: Dockerfile
container_name: company-node
hostname: company-node
networks:
trace2e-net:
ipv4_address: 172.20.0.20
environment:
- TRACE2E_MIDDLEWARE_URL=http://172.20.0.20:50051
- RUST_LOG=info,trace2e_core=debug
- OTEL_EXPORTER_OTLP_ENDPOINT=http://172.20.0.100:4317
- OTEL_SERVICE_NAME=trace2e_middleware
- OTEL_RESOURCE_ATTRIBUTES=node.id=172.20.0.20
volumes:
- ./demo/playbooks:/app/playbooks:ro
- ./demo/data:/app/data
- company-data:/tmp
command: /app/trace2e_middleware --address 172.20.0.20 --port 50051 --consent-timeout 30000
healthcheck:
test: ["CMD", "sh", "-c", "ss -tlnp | grep 50051"]
interval: 5s
timeout: 3s
retries: 5
depends_on:
user-node:
condition: service_healthy
otel-collector:
condition: service_started
# Recruiter Node - Third party that may receive forwarded CV
recruiter-node:
build:
context: .
dockerfile: Dockerfile
container_name: recruiter-node
hostname: recruiter-node
networks:
trace2e-net:
ipv4_address: 172.20.0.30
environment:
- TRACE2E_MIDDLEWARE_URL=http://172.20.0.30:50051
- RUST_LOG=info,trace2e_core=debug
- OTEL_EXPORTER_OTLP_ENDPOINT=http://172.20.0.100:4317
- OTEL_SERVICE_NAME=trace2e_middleware
- OTEL_RESOURCE_ATTRIBUTES=node.id=172.20.0.30
volumes:
- ./demo/playbooks:/app/playbooks:ro
- ./demo/data:/app/data
- recruiter-data:/tmp
command: /app/trace2e_middleware --address 172.20.0.30 --port 50051 --consent-timeout 30000
healthcheck:
test: ["CMD", "sh", "-c", "ss -tlnp | grep 50051"]
interval: 5s
timeout: 3s
retries: 5
depends_on:
company-node:
condition: service_healthy
otel-collector:
condition: service_started
networks:
trace2e-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
volumes:
user-data:
company-data:
recruiter-data: