-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-infra-local.yml
151 lines (137 loc) · 3.67 KB
/
docker-compose-infra-local.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
version: '3.7'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
command: ["redis-server","--appendonly", "yes"]
volumes:
- redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=123456
ports:
- "8081:8081"
restart: unless-stopped
depends_on:
- "redis"
kafka:
image: obsidiandynamics/kafka
container_name: kafka
environment:
KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:29092,EXTERNAL://localhost:9092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_ZOOKEEPER_SESSION_TIMEOUT: "6000"
KAFKA_RESTART_ATTEMPTS: "10"
KAFKA_RESTART_DELAY: "5"
ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: "0"
ports:
- "9092:9092"
- "2181:2181"
restart: unless-stopped
kafdrop:
image: obsidiandynamics/kafdrop
container_name: kafdrop
restart: "no"
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: "kafka:29092"
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify"
depends_on:
- "kafka"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
container_name: elasticsearch
environment:
http.host: 0.0.0.0
transport.host: 127.0.0.1
ports:
- "9200:9200"
restart: unless-stopped
volumes:
- datamaster:/usr/share/elasticsearch/data:rw
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.3.0
container_name: kibana
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ports:
- "5601:5601"
restart: unless-stopped
depends_on:
- "elasticsearch"
links:
- "elasticsearch:elasticsearch"
logstash:
image: docker.elastic.co/logstash/logstash-oss:7.3.0
container_name: logstash
volumes:
- ./elkstack/logstash/config:/etc/logstash/conf.d
- logstashdisk:/usr/share/logstash/core
command: -f /etc/logstash/conf.d/
ports:
- "9600:9600"
restart: unless-stopped
depends_on:
- "elasticsearch"
links:
- "elasticsearch:elasticsearch"
discoveryservice:
image: discoveryservice:1.0
container_name: discoveryservice
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./discoveryservice
dockerfile: Dockerfile
ports:
- "8761:8761"
configserver:
image: configserver:1.0
container_name: configserver
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./configserver
dockerfile: Dockerfile
ports:
- "8000:8000"
tracingserver:
image: tracingserver:1.0
container_name: tracingserver
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./tracingserver
dockerfile: Dockerfile
ports:
- "9411:9411"
administration:
image: administration:1.0
container_name: administration
build:
context: ./administration
dockerfile: Dockerfile
ports:
- "10000:10000"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: administration
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
volumes:
redis-data:
datamaster:
driver: local
logstashdisk:
driver: local