-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
132 lines (123 loc) · 3.09 KB
/
docker-compose.dev.yml
File metadata and controls
132 lines (123 loc) · 3.09 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
version: '3.8'
services:
api:
build:
context: ./ttoklip-api
dockerfile: Dockerfile-dev
args:
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
container_name: api
environment:
SPRING_PROFILES_ACTIVE: dev
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
KAFKA_BOOTSTRAP_SERVERS: kafka:9093
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- "8080:8080"
volumes:
- ./ttoklip-api/src:/app/src
networks:
- ttoklip_network
- monitoring_network
batch:
build:
context: ./ttoklip-batch
dockerfile: Dockerfile-dev
args:
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
container_name: batch
environment:
SPRING_PROFILES_ACTIVE: dev
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
KAFKA_BOOTSTRAP_SERVERS: kafka:9093
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- "8081:8081" # 외부에서 접근할 수 있도록 포트 매핑 추가
volumes:
- ./ttoklip-batch/src:/app/src
networks:
- ttoklip_network
- monitoring_network
notification:
build:
context: ./ttoklip-notification
dockerfile: Dockerfile-dev
args:
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
container_name: notification
environment:
SPRING_PROFILES_ACTIVE: dev
JASYPT_ENCRYPTOR_PASSWORD: ${JASYPT_ENCRYPTOR_PASSWORD}
KAFKA_BOOTSTRAP_SERVERS: kafka:9093
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- "8002:8002"
networks:
- ttoklip_network
- monitoring_network
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
restart: always
environment:
- REDIS_PASSWORD=qwertyuiop1234
networks:
- ttoklip_network
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- api
networks:
- ttoklip_network
zookeeper:
image: bitnami/zookeeper:latest # Bitnami의 최신 Zookeeper 이미지 사용
container_name: zookeeper
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
ports:
- "2181:2181"
networks:
- ttoklip_network
kafka:
image: wurstmeister/kafka:latest
container_name: kafka
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
ports:
- "9093:9093"
- "9092:9092"
depends_on:
- zookeeper
networks:
- ttoklip_network
networks:
monitoring_network:
external: true
ttoklip_network:
external: true