-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (101 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
110 lines (101 loc) · 2.46 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
version: '3.8'
services:
gateway:
image: nginx
container_name: gateway
ports:
- 4000:80
volumes:
- ./local-gateway.nginx:/etc/nginx/templates/default.conf.template
restart: unless-stopped
cassandra:
image: bitnami/cassandra:3.11.4
container_name: cassandra
ports:
- 7000:7000
- 9042:9042
volumes:
- cassandra-data:/bitnami
- ./cassandra:/docker-entrypoint-initdb.d
environment:
CASSANDRA_USER: cassandra
CASSANDRA_PASSWORD: cassandra
restart: unless-stopped
redis:
image: redis:6.2.6
container_name: redis
ports:
- 6379:6379
restart: unless-stopped
zookeeper:
image: bitnami/zookeeper:3.8
container_name: zookeeper
ports:
- 2181
volumes:
- zookeeper-data:/bitnami
environment:
ALLOW_ANONYMOUS_LOGIN: 'yes'
restart: unless-stopped
kafka:
depends_on:
- zookeeper
image: bitnami/kafka:2.8.1
container_name: kafka
ports:
- 9092:9092
volumes:
- kafka-data:/bitnami
environment:
KAFKA_BROKER_ID: 1
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_CFG_LISTENERS: CLIENT://:9093,EXTERNAL://:9092
KAFKA_CFG_ADVERTISED_LISTENERS: CLIENT://kafka:9093,EXTERNAL://localhost:9092
KAFKA_INTER_BROKER_LISTENER_NAME: CLIENT
restart: unless-stopped
kafka-ui:
image: provectuslabs/kafka-ui:0.3.3
container_name: kafka-ui
ports:
- 8888:8888
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9093
SERVER_PORT: 8888
keycloak:
depends_on:
- keycloak-db
image: quay.io/keycloak/keycloak:15.0.2
container_name: keycloak
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: password
DB_VENDOR: postgres
DB_ADDR: keycloak-db
DB_PORT: 5432
DB_DATABASE: postgres
DB_USER: admin
DB_PASSWORD: password
ports:
- "8000:8080"
restart: unless-stopped
keycloak-db:
image: postgres:13
container_name: keycloak-db
environment:
POSTGRES_DB: postgres
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
ports:
- "5432"
volumes:
- kc-db-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
db-data:
cassandra-data:
zookeeper-data:
kafka-data:
kc-db-data: