-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
65 lines (60 loc) · 1.25 KB
/
docker-compose.yaml
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
version: "3.4"
services:
zookeeper:
image: bitnami/zookeeper
restart: always
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: bitnami/kafka
ports:
- "9092:9092"
restart: always
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092
depends_on:
- zookeeper
mongo:
image: mongo:latest
container_name: mongo-container
restart: always
ports:
- "27017:27017"
networks:
- techbankNet
volumes:
- "mongodb_data_container:/data/db"
mysql:
image: mysql:latest
container_name: mysql-container
restart: always
ports:
- "3306:3306"
networks:
- techbankNet
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- "mysql_data_container:/data/db"
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
mongodb_data_container:
driver: local
mysql_data_container:
driver: local
networks:
default:
external:
name: techbankNet