-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.09 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
# version: '3.8'
# services:
# mongodb:
# image: mongo:latest
# container_name: mongodb
# restart: always
# environment:
# env_file: ./env
# ports:
# - "27017:27017"
# volumes:
# - mongodb_data:/data/db
# volumes:
# mongodb_data:
version: "3.8"
services:
kafka:
image: wurstmeister/kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_LOG_DIRS: ./kafka
KAFKA_BROKER_ID: 1
KAFKA_CREATE_TOPICS: "simple-kafka-golang:1:1"
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_PORT: 9092
KAFKA_LOG_RETENTION_HOURS: "168"
KAFKA_LOG_RETENTION_BYTES: "100000000"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
zookeeper:
image: elevy/zookeeper:latest
environment:
MYID: 1
SERVERS: zookeeper
ports:
- "2181:2181"
kafka-manager:
hostname: kafka-manager
image: sheepkiller/kafka-manager
ports:
- "9000:9000"
links:
- zookeeper
- kafka
environment:
ZK_HOSTS: zookeeper:2181
APPLICATION_SECRET: letmein