-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
145 lines (133 loc) · 3.29 KB
/
docker-compose.yml
File metadata and controls
145 lines (133 loc) · 3.29 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: rabbitmq
RABBITMQ_DEFAULT_PASS: rabbitmq
volumes:
- rabbitmq-data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
networks:
- weblyft
redis-stack:
image: redis/redis-stack:latest
container_name: redis-stack
ports:
- "6379:6379"
- "8001:8001"
networks:
- weblyft
# zookeeper:
# image: confluentinc/cp-zookeeper:latest
# container_name: zookeeper
# ports:
# - 2181:2181
# environment:
# ZOOKEEPER_CLIENT_PORT: 2181
# networks:
# - weblyft
kafka:
image: bitnami/kafka:latest
container_name: kafka
ports:
- "9092:9092"
- "29092:29092"
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@localhost:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,INTERNAL://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092,INTERNAL://kafka:29092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,INTERNAL:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_KRAFT_CLUSTER_ID=MkU3OEVBNTcwNTJENDM2Qk
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
volumes:
- kafka_data:/bitnami/kafka
networks:
- weblyft
restart: unless-stopped
kafka-ui:
image: provectuslabs/kafka-ui:latest
container_name: kafka-ui
ports:
- "8080:8080"
depends_on:
- kafka
environment:
- KAFKA_CLUSTERS_0_NAME=weblyft
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:29092
volumes:
- kafka_data:/bitnami/kafka-ui
networks:
- weblyft
# clickhouse:
# image: clickhouse/clickhouse-server:latest
# container_name: clickhouse
# ports:
# - "8123:8123" # HTTP
# - "9000:9000" # Native TCP
# environment:
# CLICKHOUSE_USER: default
# CLICKHOUSE_PASSWORD: default
# CLICKHOUSE_DB: weblyft
# volumes:
# - clickhouse-data:/var/lib/clickhouse
# networks:
# - weblyft
# restart: always
# api-server:
# build: ./api-server
# container_name: api-server
# depends_on:
# - kafka
# - clickhouse
# ports:
# - 5000:5000
# volumes:
# - .:/app/api-server
# networks:
# - weblyft
# env_file:
# - ./src/api-server/.env
# docker-mgr:
# build: ./docker-mgr
# container_name: docker-mgr
# ports:
# - 9000:9000
# volumes:
# - .:/app/docker-mgr
# networks:
# - weblyft
# env_file:
# - ./src/docker-mgr/.env
# reverse-proxy:
# build: ./reverse-proxy
# container_name: reverse-proxy
# ports:
# - 8080:8080
# volumes:
# - .:/app/reverse-proxy
# networks:
# - weblyft
# env_file:
# - ./src/reverse-proxy/.env
networks:
weblyft:
driver: bridge
volumes:
# public:
rabbitmq-data:
clickhouse-data:
kafka_data: