-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
149 lines (140 loc) · 4.68 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3'
services:
zk:
image: confluentinc/cp-zookeeper:5.0.0
container_name: zk
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
restart: on-failure:5
kafka:
image: confluentinc/cp-kafka:5.0.0
container_name: kafka
ports:
- 9092:9092
- 9094:9094
environment:
KAFKA_ZOOKEEPER_CONNECT: zk:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,OUTSIDE://localhost:9094
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_NUM_PARTITIONS: 4
restart: on-failure:5
kafka-schema-registry:
image: confluentinc/cp-schema-registry:5.0.0
container_name: kafka-schema-registry
ports:
- 8081:8081
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zk:2181
SCHEMA_REGISTRY_HOST_NAME: kafka-schema-registry
SCHEMA_REGISTRY_LISTENERS: http://kafka-schema-registry:8081
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS: GET,POST,PUT,OPTIONS
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN: '*'
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: none
restart: on-failure:5
reactive-interaction-gateway:
container_name: reactive-interaction-gateway
image: accenture/reactive-interaction-gateway
environment:
- LOG_LEVEL=debug
# Kafka
- KAFKA_BROKERS=kafka:9092
- KAFKA_SOURCE_TOPICS=openslava
- PROXY_KAFKA_REQUEST_TOPIC=openslava
- PROXY_KAFKA_RESPONSE_TOPICS=openslava
# Kafka Avro
# <== UNCOMMENT TO USE AVRO ==>
# - KAFKA_SERIALIZER=avro
# - KAFKA_SCHEMA_REGISTRY_HOST=kafka-schema-registry:8081
# - PROXY_KAFKA_REQUEST_AVRO=openslava-value
# Proxy
- PROXY_CONFIG_FILE=/rig-proxy.json
- RS_HOST=registration-service
- KAFKA_HOST=kafka
# Subscriptions
- EXTRACTORS={"com.openslava.registration.confirmed":{"name":{"stable_field_index":0,"event":{"json_pointer":"/data/name"}}},"com.openslava.mentor.assigned":{"name":{"stable_field_index":0,"event":{"json_pointer":"/data/attendeeName"}}}}
ports:
- 4000:4000
- 4010:4010
volumes:
- ./rig-proxy.json:/rig-proxy.json
restart: on-failure:5
registration-service:
container_name: registration-service
build:
context: ./registration-service
ports:
- 5000:5000
environment:
KAFKA_BROKERS: kafka:9092
# <== UNCOMMENT TO USE AVRO ==>
# KAFKA_AVRO_ENABLED: 1
# KAFKA_SCHEMA_REGISTRY_HOST: http://kafka-schema-registry:8081/
volumes:
- ./registration-service/src:/home/node/src
- ./registration-service/index.js:/home/node/index.js
command: yarn start:watch
restart: on-failure:5
mentor-matching-service:
container_name: mentor-matching-service
build:
context: ./mentor-matching-service
environment:
KAFKA_BROKERS: kafka:9092
# <== UNCOMMENT TO USE AVRO ==>
# KAFKA_AVRO_ENABLED: 1
# KAFKA_SCHEMA_REGISTRY_HOST: http://kafka-schema-registry:8081/
volumes:
- ./mentor-matching-service/src:/home/node/src
- ./mentor-matching-service/index.js:/home/node/index.js
command: yarn start:watch
restart: on-failure:5
notification-service:
container_name: notification-service
build:
context: ./notification-service
environment:
KAFKA_BROKERS: kafka:9092
# <== UNCOMMENT TO USE AVRO ==>
# KAFKA_AVRO_ENABLED: 1
# KAFKA_SCHEMA_REGISTRY_HOST: http://kafka-schema-registry:8081/
volumes:
- ./notification-service/src:/home/node/src
- ./notification-service/index.js:/home/node/index.js
command: yarn start:watch
restart: on-failure:5
frontend:
build:
context: ./frontend
container_name: frontend
ports:
- 9000:80
restart: on-failure:5
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
restart: on-failure:5
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
volumes:
- ./dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./rig-grafana.json:/var/lib/grafana/dashboards/rig-grafana.json
links:
- prometheus
restart: on-failure:5