-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_allApps.yml
62 lines (57 loc) · 1.61 KB
/
docker-compose_allApps.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
version: "3"
services:
zookeeper:
image: zookeeper:3.4
container_name: zookeeper
ports:
- "2181:2181"
kafka:
image: ches/kafka
container_name: kafka
ports:
- "7203:7203"
- "9092:9092"
environment:
- KAFKA_MESSAGE_MAX_BYTES=3000000
- KAFKA_REPLICA_FETCH_MAX_BYTES=3100000
- ZOOKEEPER_IP=172.24.96.1
- KAFKA_ADVERTISED_HOST_NAME=172.24.96.1
depends_on:
- "zookeeper"
topiccreation:
image: ches/kafka
depends_on:
- "kafka"
environment:
- ZOOKEEPER_IP=172.24.96.1
command: >
sh -c "sleep 5 && kafka-topics.sh --create --topic create-review --replication-factor 1 --partitions 1 --zookeeper $$ZOOKEEPER_IP:2181 &&
kafka-topics.sh --create --topic rate-review --replication-factor 1 --partitions 1 --zookeeper $$ZOOKEEPER_IP:2181"
rpcserver:
build:
context: .
dockerfile: ./build/Review.CommandRpcServer/Dockerfile
image: command-rpcserver
container_name: command-rpcserver
ports:
- "10000:10000"
commandengine:
build:
context: .
dockerfile: ./build/Review.CommandEngine/Dockerfile
image: command-engine
container_name: command-engine
command: >
sh -c "sleep 15 && ./app -server_addr=172.24.96.1:10000 -kafka_brokers=172.24.96.1:9092 -group_id=review-command-engine"
depends_on:
- "topiccreation"
- "rpcserver"
# web:
# build:
# context: .
# dockerfile: ./build/Review.API/Dockerfile
# ports:
# - "80:8000"
# depends_on:
# - "topiccreation"
# command: ["./wait-for-it.sh", "kafka:9092"]