-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (82 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (82 loc) · 1.97 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
services:
redis:
image: redis:7-alpine
container_name: redis
ports:
- "6380:6379"
networks:
- gateway-net
jaeger:
image: jaegertracing/all-in-one:1.58
container_name: jaeger
environment:
COLLECTOR_OTLP_ENABLED: "true"
ports:
- "16686:16686" # UI
- "4318:4318" # OTLP HTTP receiver
networks:
- gateway-net
users-service:
build:
context: .
dockerfile: apps/users-service/Dockerfile
container_name: users-service
ports:
- "4001:4001"
environment:
PORT: 4001
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318/v1/traces
networks:
- gateway-net
orders-service-1:
build:
context: .
dockerfile: apps/orders-service/Dockerfile
container_name: orders-service-1
ports:
- "4002:4002"
environment:
PORT: 4002
INSTANCE_ID: orders-service-1
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318/v1/traces
networks:
- gateway-net
orders-service-2:
build:
context: .
dockerfile: apps/orders-service/Dockerfile
container_name: orders-service-2
ports:
- "4003:4002"
environment:
PORT: 4002
INSTANCE_ID: orders-service-2
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318/v1/traces
networks:
- gateway-net
gateway:
build:
context: .
dockerfile: apps/gateway/Dockerfile
container_name: gateway
ports:
- "8080:8080"
environment:
PORT: 8080
JWT_SECRET: change-me-in-production
REDIS_URL: redis://redis:6379
USERS_SERVICE_URL: http://users-service:4001
ORDERS_SERVICE_1_URL: http://orders-service-1:4002
ORDERS_SERVICE_2_URL: http://orders-service-2:4002
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318/v1/traces
depends_on:
- redis
- users-service
- orders-service-1
- orders-service-2
- jaeger
networks:
- gateway-net
networks:
gateway-net:
driver: bridge