-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 1.46 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: '3.8'
services:
zookeeper:
container_name: zookeeper-container
image: bitnami/zookeeper:latest
expose:
- '2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
container_name: kafka-container
image: bitnami/kafka:latest
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
mongodb:
container_name: mongodb-container
image: mongo:latest
environment:
- MONGO_INITDB_DATABASE=logdb
ports:
- '27017:27017'
volumes:
- mongodb-volume:/data/db
- mongodb-volume:/data/configdb
web:
container_name: web-container
image: braintr/kartaca-internship-task
build: .
command: node web/app.js
volumes:
- app-volume:/app
ports:
- '80:80'
depends_on:
- mongodb
producer:
container_name: producer-container
image: braintr/kartaca-internship-task
command: node producer/producer.js
volumes:
- app-volume:/app
depends_on:
- kafka
- web
consumer:
container_name: consumer-container
image: braintr/kartaca-internship-task
command: node consumer/consumer.js
volumes:
- app-volume:/app
depends_on:
- kafka
- mongodb
volumes:
app-volume:
mongodb-volume: