-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 948 Bytes
/
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
version: "3.4"
services:
dmicrog:
image: dmicrog:v0.0.1
build:
context: ./
dockerfile: Dockerfile
environment:
MICRO_SERVER_ADDRESS: ":9099"
MICRO_REGISTRY: consul
MICRO_REGISTRY_ADDRESS: consul:8500
MICRO_BROKER: kafka
MICRO_BROKER_ADDRESS: kafka:9092
MICRO_LOG_LEVEL: debug
expose:
- "9099"
ports:
- "9099:9099"
depends_on:
- consul
- kafka
consul:
image: consul:1.6
expose:
- "8500"
ports:
- "8500:8500"
hostname: "consul"
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:2.11-2.0.0
depends_on:
- zookeeper
ports:
- "9092:9092"
expose:
- 9092
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
hostname: "kafka"