forked from featbit/featbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-infra.yml
97 lines (91 loc) · 2.26 KB
/
docker-compose-infra.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
name: featbit-infra
version: "3"
services:
mongodb:
image: mongo:5.0.14
restart: on-failure
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
- MONGO_INITDB_DATABASE=featbit
volumes:
- mongodb:/data/db
- ./infra/mongodb/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
networks:
- featbit-network
redis:
image: bitnami/redis:6.2.10
restart: on-failure
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- featbit-network
ports:
- "6379:6379"
volumes:
- redis:/data
zookeeper:
image: bitnami/zookeeper:3.8.1
restart: on-failure
ports:
- '2181:2181'
volumes:
- zookeeper:/bitnami/zookeeper
environment:
ALLOW_ANONYMOUS_LOGIN: 'true'
networks:
- featbit-network
kafka:
image: bitnami/kafka:3.2.3
restart: on-failure
depends_on:
- zookeeper
ports:
- '9092:9092'
- '29092:29092'
environment:
KAFKA_BROKER_ID: 1001
KAFKA_CFG_RESERVED_BROKER_MAX_ID: 1001
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,PLAINTEXT_HOST://:29092
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'true'
ALLOW_PLAINTEXT_LISTENER: 'true'
networks:
- featbit-network
volumes:
- kafka:/bitnami/kafka
clickhouse-server:
image: clickhouse/clickhouse-server:22.3
restart: on-failure
depends_on:
- zookeeper
- kafka
ports:
- "8123:8123"
- "8443:8443"
- "9000:9000"
- "9009:9009"
- "9440:9440"
networks:
- featbit-network
volumes:
- ./infra/clickhouse/single_node/config.xml:/etc/clickhouse-server/config.xml
- ./infra/clickhouse/users.xml:/etc/clickhouse-server/users.xml
- clickhouse-server:/var/lib/clickhouse
networks:
featbit-network:
name: featbit-network
driver: bridge
ipam:
config:
- subnet: 172.10.0.0/16
volumes:
mongodb:
redis:
kafka:
clickhouse-server:
zookeeper: