-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
108 lines (108 loc) · 2.53 KB
/
docker-compose.yaml
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
version: '3.7'
services:
bookinfoapi:
build: ./bookInfoAPI/.
container_name: bookInfoAPI
ports:
- "5550:5550"
environment:
BASE_URL : ":5550"
JAEGER_AGENT_HOST : "jaeger"
JAEGER_AGENT_PORT : 6831
STOCK_URL: "http://bookstockapi:5555"
ConnectionString: "mongodb://{username}:{password}@mongo:27017"
DatabaseName: bookInfo
DbUserName: mongoadmin
DbPassword: secret
networks:
- bookInfo-network
bookstockapi:
build:
context: ./bookStockAPI/.
dockerfile: v1.dockerfile
container_name: bookStockAPI
ports:
- "5555:5555"
environment:
BASE_URL : ":5555"
JAEGER_AGENT_HOST : "jaeger"
JAEGER_AGENT_PORT : 6831
ConnectionString: "redis:6379"
DatabaseName: 0
DbPassword: secret
networks:
- bookInfo-network
jaeger:
image: jaegertracing/all-in-one:latest
container_name: bookinfo_jaeger
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
networks:
- bookInfo-network
prometheus:
build: prometheus/.
container_name: bookinfo_prometheus
networks:
- bookInfo-network
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
- prometheus
networks:
- bookInfo-network
mongo:
build: ./mongodb/.
container_name: bookInfo-mongo
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: mongoadmin
MONGO_INITDB_ROOT_PASSWORD: secret
MONGO_INITDB_DATABASE: bookInfo
volumes:
- bookinfo-mongodata:/data/db
networks:
- bookInfo-network
mongo-express:
image: mongo-express
container_name: bookInfo-mexpress
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: mongoadmin
ME_CONFIG_MONGODB_ADMINPASSWORD: secret
ME_CONFIG_MONGODB_URL: mongodb://mongoadmin:secret@mongo:27017/
depends_on:
- mongo
networks:
- bookInfo-network
redis:
build: ./redis/.
container_name: bookInfo-redis
restart: always
ports:
- 6379:6379
volumes:
- bookinfo-redisdata:/data
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- bookInfo-network
networks:
bookInfo-network:
volumes:
bookinfo-mongodata:
grafana-storage:
bookinfo-redisdata: