-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
38 lines (34 loc) · 1.03 KB
/
docker-compose.example.yml
File metadata and controls
38 lines (34 loc) · 1.03 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
# docker-compose.example.yml
#
# Two-service example: api → orders.
# api-service calls order-service via the orders proxy so cross-service
# traces are stitched automatically.
#
# Usage:
# cp docker-compose.example.yml docker-compose.yml && docker compose up
# reqflow traces --api http://localhost:4001
version: "3.8"
services:
api:
image: your-api:latest
environment:
PORT: "3000"
ORDER_SERVICE_URL: "http://reqflow-orders:4002"
orders:
image: your-orders:latest
environment:
PORT: "3001"
reqflow-api:
image: node:20-alpine
working_dir: /app
volumes: [".:/app"]
command: node bin/reqflow.js start --target http://api:3000 --port 4000 --api-port 4001 --service api
ports: ["4000:4000", "4001:4001"]
depends_on: [api]
reqflow-orders:
image: node:20-alpine
working_dir: /app
volumes: [".:/app"]
command: node bin/reqflow.js start --target http://orders:3001 --port 4002 --api-port 4003 --service orders
ports: ["4002:4002", "4003:4003"]
depends_on: [orders]