-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 1.18 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:
zk4kafka-01-s:
image: confluentinc/cp-zookeeper:latest
container_name: zk4kafka-01-c
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 22181
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_INIT_LIMIT: 5
ZOOKEEPER_SYNC_LIMIT: 2
ZOOKEEPER_SERVERS: localhost:33477:33478
restart: always
network_mode: host
volumes:
- data-zk4kafka-01-v:/var/lib/zookeeper/data
- log-zk4kafka-01-v:/var/lib/zookeeper/log
kafka-01-s:
image: confluentinc/cp-kafka:latest
container_name: kafka-01-c
depends_on:
- zk4kafka-01-s
environment:
KAFKA_BROKER_ID: 1
KAFKA_COMPRESSION_TYPE: snappy
KAFKA_ZOOKEEPER_CONNECT: localhost:22181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:19092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_DELETE_TOPIC_ENABLE: 'true'
restart: always
network_mode: host
volumes:
- data-kafka-01-v:/var/lib/kafka/data
fwatcher-postgres-s:
image: postgres:9.6
container_name: fwatcher-postgres-c
env_file:
- .env
ports:
- "5432:5432"
volumes:
data-zk4kafka-01-v:
log-zk4kafka-01-v:
data-kafka-01-v: