-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
64 lines (64 loc) · 1.3 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
version: '2'
services:
zoo1:
build:
context: ./zookeeper
image: skroutz/zookeeper:latest
hostname: zoo1
container_name: zoo1
restart: unless-stopped
env_file: ./.env
environment:
MYID: 1
zoo2:
build:
context: ./zookeeper
image: skroutz/zookeeper:latest
hostname: zoo2
container_name: zoo2
restart: unless-stopped
env_file: ./.env
environment:
MYID: 2
zoo3:
build:
context: ./zookeeper
image: skroutz/zookeeper:latest
hostname: zoo3
container_name: zoo3
restart: unless-stopped
env_file: ./.env
environment:
MYID: 3
kc1.docker:
build:
context: ./kafka
args:
KAFKAPKG: "${KAFKAPKG}"
hostname: kc1.docker
container_name: kc1
restart: unless-stopped
image: "skroutz/kafka:${KAFKAVERSION}"
env_file: ./.env
environment:
KAFKA_BROKER_ID: 1
kc2.docker:
build:
context: ./kafka
args:
KAFKAPKG: "${KAFKAPKG}"
image: "skroutz/kafka:${KAFKAVERSION}"
hostname: kc2.docker
container_name: kc2
restart: unless-stopped
env_file: ./.env
environment:
KAFKA_BROKER_ID: 2
rafka:
build:
context: ./rafka
ports:
- "6380:6380"
hostname: rafka
restart: unless-stopped
env_file: ./.env