-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (76 loc) · 1.97 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
version: '3'
services:
service-registry:
build: ./service-registry
container_name: spring-service-registry
ports:
- "8761:8761"
config-server:
build: ./config-server
container_name: spring-config-server
entrypoint: ["/opt/docker-scripts/wait-for-service-registry.sh"]
volumes:
- ./docker-scripts:/opt/docker-scripts
expose:
- "8282"
links:
- service-registry
api-gateway:
build: ./api-gateway
container_name: spring-api-gateway
environment:
- RETRIES=10
entrypoint: ["/opt/docker-scripts/wait-for-config-server.sh"]
volumes:
- ./docker-scripts:/opt/docker-scripts
ports:
- "8181:8181"
links:
- service-registry
- config-server
rent-service:
build: ./rent-service
container_name: spring-rent-service
environment:
- RETRIES=10
entrypoint: ["/opt/docker-scripts/wait-for-config-server.sh"]
volumes:
- ./docker-scripts:/opt/docker-scripts
expose:
- "8001"
links:
- service-registry
- config-server
retro-service:
build: ./retro-service
container_name: spring-retro-service
environment:
- RETRIES=10
entrypoint: ["/opt/docker-scripts/wait-for-config-server.sh"]
volumes:
- ./docker-scripts:/opt/docker-scripts
expose:
- "8002"
links:
- service-registry
- config-server
prometheus:
image: prom/prometheus:v2.35.0
container_name: prometheus-server
volumes:
- ./monitoring/prometheus/config:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
ports:
- "9090:9090"
grafana:
image: grafana/grafana-oss:8.5.2
container_name: grafana-dashboard
volumes:
- ./monitoring/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- "3000:3000"
depends_on:
- prometheus