forked from numberOnethemepark/themepark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (108 loc) · 3.08 KB
/
docker-compose.yml
File metadata and controls
121 lines (108 loc) · 3.08 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
services:
# eureka-server:
# build:
# context: ./eureka # eureka 서버 Dockerfile이 있는 경로
# container_name: eureka-server
# ports:
# - "8761:8761"
# environment:
# - SPRING_PROFILES_ACTIVE=docker
# networks:
# - msa-network
postgres:
image: postgres:latest
container_name: themepark_db
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 12345
POSTGRES_DB: themeparkdb
ports:
- "5430:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis-stack:
image: redis/redis-stack
container_name: redis-stack-compose
restart: always
environment:
REDIS_ARGS: "--requirepass systempass"
ports:
- 6379:6379
- 8009:8009
zookeeper:
image: bitnami/zookeeper
platform: linux/amd64
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ALLOW_ANONYMOUS_LOGIN: "yes"
kafka:
image: wurstmeister/kafka:latest
platform: linux/amd64
ports:
- "8088:8088"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:29092,OUTSIDE://localhost:8088
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:29092,OUTSIDE://0.0.0.0:8088
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka-ui:
image: provectuslabs/kafka-ui:latest
platform: linux/amd64
ports:
- "8089:8089"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
KAFKA_CLUSTERS_0_READONLY: "false"
SERVER_PORT: 8089
zipkin:
image: openzipkin/zipkin:latest
container_name: zipkin
ports:
- "9411:9411"
environment:
- STORAGE_TYPE=mem # 메모리 저장 (간단 테스트용)
restart: always
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090" # Prometheus 기본 포트
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml #호스트의 prometheus.yml 파일을 컨테이너에 마운트
command:
- '--config.file=/etc/prometheus/prometheus.yml' # 설정 파일 경로 설정
networks:
- prometheus-network # Prometheus를 prometheus-network에 연결
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
depends_on:
- prometheus
networks:
- prometheus-network # Grafana를 prometheus-network에 연결
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
restart: unless-stopped
ports:
- "5672:5672" # 애플리케이션이 접속하는 AMQP 포트
- "15672:15672" # 웹 관리 콘솔 포트
volumes:
- rabbitmq_data:/var/lib/rabbitmq
volumes:
pgdata:
rabbitmq_data:
networks:
prometheus-network:
external: false # 내부 네트워크로 설정