-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.06 KB
/
docker-compose.yml
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
version: '3.8'
services:
publisher:
build:
context: ./publisher
dockerfile: Dockerfile
container_name: go-publisher
ports:
- "9001:9001"
#network_mode: host
depends_on:
- prometheus
- jaeger
- redis
networks:
- microservices
subscriber:
build:
context: ./subscriber
dockerfile: Dockerfile
container_name: go-subscriber
#ports:
# - 9002:9002
#network_mode: host
depends_on:
- redis
networks:
- microservices
prometheus:
image: prom/prometheus:v2.25.2
container_name: prometheus
ports:
- "9090:9090"
#volumes:
# - ./docs/prometheus.yml:/etc/prometheus/prometheus.yml
jaeger:
image: jaegertracing/all-in-one:1.22.0
container_name: jaeger
ports:
- "16686:16686"
- "14268:14268"
redis:
image: redis:latest
container_name: redis-pubsub
ports:
- "6380:6379"
#network_mode: host
networks:
- microservices
restart: unless-stopped
networks:
microservices:
driver: bridge