-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
153 lines (142 loc) · 3.21 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
container_name: service-elasticsearch
ports:
- "9200:9200"
- "9300:9300"
restart: unless-stopped
environment:
- discovery.type=single-node
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
# mem_limit: 500m
# cap_add:
# - IPC_LOCK
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data:rw
kibana:
image: docker.elastic.co/kibana/kibana:7.8.0
container_name: service-kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
- elasticsearch
zipkin:
image: openzipkin/zipkin
container_name: service-zipkin
ports:
- 9411:9411
logstash:
image: docker.elastic.co/logstash/logstash:7.8.0
container_name: service-logstash
restart: unless-stopped
command: logstash -f /usr/share/logstash/pipeline
volumes:
- ./logstash/config:/usr/share/logstash/config:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "5000:5000"
- "12204:12204"
depends_on:
- elasticsearch
discovery:
image: lmgm/discovery-service
container_name: discovery-service
build:
context: ./discovery-service
dockerfile: Dockerfile
ports:
- "8761:8761"
depends_on:
- logstash
links:
- logstash
gateway:
image: lmgm/api-gateway-service
container_name: api-gateway-service
build:
context: ./api-gateway-service
dockerfile: Dockerfile
ports:
- "8762:8762"
links:
- discovery
- logstash
- zipkin
books:
image: lmgm/books-service-api
container_name: books-service
build:
context: ./books-service
dockerfile: Dockerfile
ports:
- "7500:7500"
links:
- discovery
- logstash
- zipkin
orders:
image: lmgm/orders-service-api
container_name: orders-service
build:
context: ./orders-service
dockerfile: Dockerfile
ports:
- "7501:7501"
depends_on:
- discovery
- books
links:
- discovery
- logstash
- zipkin
params:
image: lmgm/params-service-api
container_name: params-service
build:
context: ./params-service
dockerfile: Dockerfile
ports:
- "7502:7502"
depends_on:
- discovery
links:
- discovery
- logstash
- zipkin
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
links:
- discovery
- gateway
- books
- orders
- params
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
user: "104"