forked from raystack/raccoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (89 loc) · 2.66 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.9'
networks:
cs-network:
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.1.2
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- cs-network
kafka:
image: confluentinc/cp-kafka:5.1.2
hostname: kafka
container_name: kafka
depends_on:
- zookeeper
ports:
- "9094:9094"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9092,OUTSIDE://localhost:9094
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_SOCKET_REQUEST_MAX_BYTES: 1000000000
CONFLUENT_METRICS_ENABLE: 'false'
links:
- zookeeper
networks:
- cs-network
cs:
build:
context: .
command: ["/bin/sh", "-c", "./raccoon"]
hostname: cs
container_name: cs
stdin_open: true
tty: true
depends_on:
- kafka
- telegraf
environment:
SERVER_WEBSOCKET_PORT: "8080"
SERVER_WEBSOCKET_CHECK_ORIGIN: "true"
SERVER_WEBSOCKET_MAX_CONN: "30000"
SERVER_WEBSOCKET_READ_BUFFER_SIZE: "10240"
SERVER_WEBSOCKET_WRITE_BUFFER_SIZE: "10240"
SERVER_WEBSOCKET_CONN_ID_HEADER: "X-User-ID"
SERVER_WEBSOCKET_CONN_GROUP_HEADER: "X-User-Group"
SERVER_WEBSOCKET_PING_INTERVAL_MS: 10000
SERVER_WEBSOCKET_PONG_WAIT_INTERVAL_MS: 10000
SERVER_WEBSOCKET_WRITE_WAIT_INTERVAL_MS: 1000
SERVER_WEBSOCKET_PINGER_SIZE: 1
SERVER_GRPC_PORT: 8081
WORKER_BUFFER_CHANNEL_SIZE: 5
WORKER_BUFFER_FLUSH_TIMEOUT_MS: 5000
WORKER_POOL_SIZE: 5
WORKER_KAFKA_DELIVERY_CHANNEL_SIZE: 100
EVENT_DISTRIBUTION_PUBLISHER_PATTERN: "clickstream-%s-log"
PUBLISHER_KAFKA_CLIENT_BOOTSTRAP_SERVERS: "kafka:9092"
PUBLISHER_KAFKA_CLIENT_ACKS: "1"
PUBLISHER_KAFKA_CLIENT_RETRIES: "2"
PUBLISHER_KAFKA_CLIENT_RETRY_BACKOFF_MS: "100"
PUBLISHER_KAFKA_CLIENT_STATISTICS_INTERVAL_MS: 5000
PUBLISHER_KAFKA_CLIENT_QUEUE_BUFFERING_MAX_MESSAGES: 100000
PUBLISHER_KAFKA_FLUSH_INTERVAL_MS: 1000
METRIC_STATSD_ADDRESS: "telegraf:8125"
METRIC_STATSD_FLUSH_PERIOD_MS: 100
LOG_LEVEL: "info"
ports:
- "8080:8080"
- "8081:8081"
networks:
- cs-network
telegraf:
image: telegraf
volumes:
- ./.telegraf.sample.conf:/etc/telegraf/telegraf.conf:ro
ports:
- "8125:8125"
networks:
- cs-network