-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (105 loc) · 2.68 KB
/
docker-compose.yml
File metadata and controls
116 lines (105 loc) · 2.68 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
version: '3.7'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: bobjool-zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
kafka:
image: confluentinc/cp-kafka:latest
container_name: bobjool-kafka
ports:
- "9092:9092"
- "29092:29092"
environment:
KAFKA_ADVERTISED_LISTENERS: >
INTERNAL://kafka:19092,
EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:9092,
DOCKER://host.docker.internal:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
kafka-ui:
image: provectuslabs/kafka-ui:latest
container_name: bobjool-kafka-ui
depends_on:
- kafka
ports:
- "18080:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
zipkin:
image: openzipkin/zipkin:latest
container_name: bobjool-zipkin
ports:
- "9411:9411"
postgres:
image: postgres:latest
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: auth_db
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
# Queue 서비스 전용 Redis
queue-redis:
image: redis:latest
container_name: queue-redis
ports:
- "6380:6379"
# 공유 Redis
shared-redis:
image: redis:latest
container_name: shared-redis
ports:
- "6379:6379"
grafana:
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
# Redis Exporter for Shared Redis
redis-exporter-shared:
image: oliver006/redis_exporter
container_name: redis-exporter-shared
ports:
- "9121:9121"
environment:
REDIS_ADDR: "shared-redis:6379"
depends_on:
- shared-redis
- prometheus
# Redis Exporter for Queue Redis
redis-exporter-queue:
image: oliver006/redis_exporter
container_name: redis-exporter-queue
ports:
- "9122:9121"
environment:
REDIS_ADDR: "queue-redis:6379"
REDIS_USER: "default"
REDIS_PASSWORD: "password"
depends_on:
- queue-redis
- prometheus