-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '2'
services:
crawlstreams:
build:
context: .
args:
http_proxy: ${HTTP_PROXY}
https_proxy: ${HTTPS_PROXY}
environment:
- "CDX_SERVER=http://cdxserver:8080/tc"
- "WAYBACK_SERVER=http://pywb:8080/test/"
- "KAFKA_BOOTSTRAP_SERVERS=kafka:9092"
- "WEBHDFS_PREFIX=http://warc-server:8000/by-filename/"
depends_on:
- cdxserver
- kafka
ports:
- "8000:8000"
# OutbackCDX
cdxserver:
image: nlagovau/outbackcdx:0.5.1
command: "java -jar outbackcdx.jar -d /cdx-data -p 8080 -b 0.0.0.0"
ports:
- "9090:8080"
volumes:
- ./integration-testing/outbackcdx-data:/cdx-data
# Kafka
kafka:
image: wurstmeister/kafka:2.12-2.1.0
ports:
- "9094:9094"
environment:
HOSTNAME_COMMAND: "docker info | grep ^Name: | cut -d' ' -f 2"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092,OUTSIDE://_{HOSTNAME_COMMAND}:9094
KAFKA_LISTENERS: PLAINTEXT://:9092,OUTSIDE://:9094
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_NUM_RECOVERY_THREADS_PER_DATA_DIR: 10
KAFKA_LOG_RETENTION_HOURS: -1
KAFKA_LOG_RETENTION_BYTES: -1
KAFKA_NUM_PARTITIONS: 4
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
LOG4J_LOGGER_KAFKA: WARN
KAFKA_CREATE_TOPICS: "fc.tocrawl.npld:16:1,fc.tocrawl.bypm:16:1,fc.crawled:16:1"
# persistent files are in consistent locations, each server supplies a /kafka folder.
KAFKA_BROKER_ID: 1
KAFKA_LOG_DIRS: /kafka/kafka-logs/kafka-logs-broker-1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./kafka:/kafka
depends_on:
- zookeeper
# Kafka UI
ui:
image: ukwa/docker-trifecta
ports:
- "9990:9000"
environment:
- "ZK_HOST=zookeeper:2181"
depends_on:
- zookeeper
- kafka
# Needs a Zookeeper too
# ----
zookeeper:
image: zookeeper:3.4
ports:
- "2181:2181"