-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.38 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
version: '2'
services:
# ----------------------
# The log viewer:
# ----------------------
log-viewer:
build: .
environment:
- "SCRIPT_NAME=/intranet/logs"
ports:
- "8000:8000"
# ----------------------
# Kafka to test against:
# ----------------------
kafka:
image: wurstmeister/kafka:1.1.0
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_NUM_RECOVERY_THREADS_PER_DATA_DIR: 10
LOG_RETENTION_HOURS: -1
LOG_RETENTION_BYTES: -1
NUM_PARTITIONS: 16
KAFKA_CREATE_TOPICS: "fc.candidates:16:1 --config=compression.type=snappy,fc.tocrawl:16:1 --config=compression.type=snappy,fc.crawled:16:1 --config=compression.type=snappy,fc.discarded:16:1 --config=compression.type=snappy,fc.inscope:16:1 --config=compression.type=snappy"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
LOG4J_LOGGER_KAFKA: WARN
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
# Needs a Zookeeper too
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
# Kafka UI to peek in
kafka-ui:
image: ukwa/docker-trifecta
ports:
- "9000:9000"
environment:
- "ZK_HOST=zookeeper:2181"