-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
114 lines (104 loc) · 2.83 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.2'
services:
gateway:
image: functions/gateway:0.6.15
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
dnsrr: 'true'
deploy:
placement:
constraints:
- 'node.role == manager'
- 'node.platform.os == linux'
ports:
- 8080:8080
networks:
- functions
ftrigger-kafka:
image: ucalgary/ftrigger:master
command: kafka-trigger
networks:
- functions
- streaming
echoit:
image: functions/alpine:health
labels:
function: "true"
environment:
fprocess: "cat"
no_proxy: "gateway"
https_proxy: $https_proxy
deploy:
placement:
constraints:
- 'node.platform.os == linux'
labels:
ftrigger.kafka: 'true'
ftrigger.kafka.topic: 'echo'
networks:
- functions
prometheus:
image: functions/prometheus:latest
command: "-config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -storage.local.memory-chunks=10000 --alertmanager.url=http://alertmanager:9093"
ports:
- 9090:9090
environment:
no_proxy: "gateway"
networks:
- functions
deploy:
placement:
constraints:
- 'node.role == manager'
- 'node.platform.os == linux'
zookeeper:
image: confluentinc/cp-zookeeper:${CONFLUENT_PLATFORM_VERSION:-3.2.1}
hostname: zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=2181
networks:
- streaming
kafka:
image: confluentinc/cp-kafka:${CONFLUENT_PLATFORM_VERSION:-3.2.1}
hostname: kafka
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
networks:
- streaming
kafka-rest:
image: confluentinc/cp-kafka-rest:${CONFLUENT_PLATFORM_VERSION:-3.2.1}
hostname: kafka-rest
environment:
- ACCESS_CONTROL_ALLOW_ORIGIN_DEFAULT="*"
- KAFKA_REST_SCHEMA_REGISTRY_URL=http://schema-registry:8081
- KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_REST_HOST_NAME=kafka-rest
- KAFKA_REST_LISTENERS=http://kafka-rest:8082
- KAFKA_REST_BOOTSTRAP_SERVERS=PLAINTEXT://kafka:9092
ports:
- 8082:8082
networks:
- streaming
schema-registry:
image: confluentinc/cp-schema-registry:${CONFLUENT_PLATFORM_VERSION:-3.2.1}
hostname: schema-registry
environment:
- SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081
networks:
- streaming
kafka-topics-ui:
image: landoop/kafka-topics-ui:0.9.2
environment:
- KAFKA_REST_PROXY_URL=http://kafka-rest:8082
- PROXY=true
ports:
- 8000:8000
networks:
- streaming
networks:
functions:
streaming: