-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.03 KB
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
version: "3"
services:
golang.dev:
build: ./
container_name: go.dev
restart: always
volumes:
- ".:/go/src/queue-task"
depends_on:
- redis.dev
#防止容器构建后自动退出
stdin_open: true
tty: true
redis.dev:
image: redis
restart: on-failure
container_name: redis.dev
zookeeper.dev:
image: wurstmeister/zookeeper:latest
container_name: zookeeper.dev
ports:
- "2181:2181"
kafka.dev:
image: wurstmeister/kafka:latest
restart: on-failure
volumes:
- "./data/kafka:/kafka"
ports:
- "9092:9092"
container_name: kafka.dev
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper.dev:2181
KAFKA_LISTENERS:
"INTERNAL://kafka.dev:9090,
EXTERNAL://:9092"
KAFKA_ADVERTISED_LISTENERS:
"INTERNAL://kafka.dev:9090,
EXTERNAL://dockervm:9092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:
"INTERNAL:PLAINTEXT,
EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL