forked from 4-Image-Module/Image-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
188 lines (181 loc) · 3.98 KB
/
docker-compose.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
services:
eureka:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./eureka
ports:
- "19090:19090"
networks:
- image_network
env_file:
- .env
gateway:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./gateway
ports:
- "19091:19091"
networks:
- image_network
depends_on:
- eureka
env_file:
- .env
cdn:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./cdn
ports:
- "19096:19096"
networks:
- image_network
volumes:
- ./cdn/images:/app/cdn/images # 로컬 cdn 폴더의 images 폴더를 컨테이너에 매핑
env_file:
- .env
url:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./url
ports:
- "19093:19093"
networks:
- image_network
env_file:
- .env
data:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./data
ports:
- "19095:19095"
networks:
- image_network
env_file:
- .env
upload:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./upload
ports:
- "19092:19092"
networks:
- image_network
env_file:
- .env
convert:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./convert
ports:
- "19097:19097"
networks:
- image_network
env_file:
- .env
resize:
build:
dockerfile: Dockerfile
args:
- FILE_DIRECTORY=./resize
ports:
- "19098:19098"
networks:
- image_network
env_file:
- .env
server-data-db:
container_name: server_data_db
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: server_data_db
POSTGRES_PASSWORD: server_data_db
POSTGRES_DB: server_data
volumes:
- server_data_db:/var/lib/postgresql/data
networks:
- image_network
zipkin:
image: openzipkin/zipkin
container_name: image_zipkin
restart: always
ports:
- "9411:9411"
networks:
- image_network
redis:
image: redis:latest
container_name: image_redis
ports:
- "6379:6379"
networks:
- image_network
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000" # Minio API 포트
- "9001:9001" # Minio 웹 콘솔 포트
volumes:
- ./minio-data:/data # 데이터를 저장할 로컬 디렉토리
environment:
MINIO_ROOT_USER: minio # Minio 로그인 사용자 이름
MINIO_ROOT_PASSWORD: minioadmin # Minio 로그인 비밀번호
command: server /data --console-address ":9001" # Minio 서버 실행 명령
networks:
- image_network
zookeeper:
image: wurstmeister/zookeeper:latest
platform: linux/amd64
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- image_network
kafka:
image: wurstmeister/kafka:latest
platform: linux/amd64
ports:
- "29092:29092"
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9092,OUTSIDE://kafka:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9092,OUTSIDE://0.0.0.0:29092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- image_network
depends_on:
- zookeeper
kafka-ui:
image: provectuslabs/kafka-ui:latest
platform: linux/amd64
ports:
- "8080:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
KAFKA_CLUSTERS_0_READONLY: "false"
networks:
- image_network
volumes:
server_data_db:
networks:
image_network:
driver: bridge