-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.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
services:
nats:
image: nats:latest
container_name: eventagent-nats
network_mode: host
command: ["-js", "-sd", "/data"]
volumes:
- nats-data:/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "4222"]
interval: 1s
timeout: 1s
retries: 30
eventagent:
image: python:3.11-slim
container_name: eventagent-agent
working_dir: /app
volumes:
- .:/app
command: ["python", "-m", "eventagent", "run", "--servers", "localhost:4222"]
depends_on:
nats:
condition: service_healthy
network_mode: host
environment:
- PYTHONUNBUFFERED=1
payment-service:
image: python:3.11-slim
container_name: eventagent-payment-service
working_dir: /app
volumes:
- .:/app
command: ["python", "-m", "eventagent.services.payment_service"]
depends_on:
nats:
condition: service_healthy
network_mode: host
environment:
- PYTHONUNBUFFERED=1
- PAYMENT_RESULT=success
- NATS_SERVERS=localhost:4222
volumes:
nats-data: