-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
157 lines (144 loc) · 4.88 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
version: '1'
services:
hanghae-auth-user-mysql:
image: mysql:8.0
networks:
- hanghae-network
volumes:
- ./hanghae-auth-user/db/conf.d:/etc/mysql/conf.d
- ./hanghae-auth-user/db/data:/var/lib/mysql
- ./hanghae-auth-user/db/initdb.d:/docker-entrypoint-initdb.d
env_file: ./hanghae-auth-user/.env
ports:
- "3307:3306"
hanghae-auth-user-service:
image: hanghae-auth-user:1.0.0
networks:
- hanghae-network
ports:
- "8081:8080"
depends_on:
- hanghae-auth-user-mysql
environment:
- ACTIVE_PROFILE=local
- SPRING_APPLICATION_NAME=AUTH-USER
#========================================================================
hanghae-like-cart-mysql:
image: mysql:8.0
networks:
- hanghae-network
volumes:
- ./hanghae-like-cart/db/conf.d:/etc/mysql/conf.d
- ./hanghae-like-cart/db/data:/var/lib/mysql
- ./hanghae-like-cart/db/initdb.d:/docker-entrypoint-initdb.d
env_file: ./hanghae-like-cart/.env
ports:
- "3308:3306"
hanghae-like-cart-service:
image: hanghae-like-cart:1.0.0
networks:
- hanghae-network
ports:
- "8082:8080"
depends_on:
- hanghae-like-cart-mysql
environment:
- ACTIVE_PROFILE=default
- SPRING_APPLICATION_NAME=LIKE-CART
#========================================================================
hanghae-order-mysql:
image: mysql:8.0
networks:
- hanghae-network
volumes:
- ./hanghae-order/db/conf.d:/etc/mysql/conf.d
- ./hanghae-order/db/customer/data:/var/lib/mysql
- ./hanghae-order/db/initdb.d:/docker-entrypoint-initdb.d
env_file: ./hanghae-order/.env
ports:
- "3309:3306"
hanghae-order-service:
image: hanghae-order:1.0.0
networks:
- hanghae-network
ports:
- "8083:8080"
depends_on:
- hanghae-order-mysql
environment:
- ACTIVE_PROFILE=local
- SPRING_APPLICATION_NAME=ORDER
- KAFKA_CLUSTER_BOOTSTRAPSERVERS=kafka:29092
- KAFKA_GROUP_NAME=order-domain-group
- SPRING_CLOUD_OPENFEIGN_CLIENT_CONFIG_USER-SERVICE_URL=http://hanghae-auth-user-service:8080/api
#========================================================================
hanghae-product-mysql:
image: mysql:8.0
networks:
- hanghae-network
volumes:
- ./hanghae-product/db/conf.d:/etc/mysql/conf.d
- ./hanghae-product/db/customer/data:/var/lib/mysql
- ./hanghae-product/db/initdb.d:/docker-entrypoint-initdb.d
env_file: ./hanghae-product/.env
ports:
- "3310:3306"
hanghae-product-service:
image: hanghae-product:1.0.0
networks:
- hanghae-network
ports:
- "8084:8080"
depends_on:
- hanghae-product-mysql
environment:
- ACTIVE_PROFILE=default
- SPRING_APPLICATION_NAME=PRODUCT
- KAFKA_CLUSTER_BOOTSTRAPSERVERS=kafka:29092
- KAFKA_GROUP_NAME=product-domain-group
zookeeper:
image: 'arm64v8/zookeeper:3.8'
networks:
- hanghae-network
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_TLS_CLIENT_AUTH=none
- ZOO_TLS_QUORUM_CLIENT_AUTH=none
kafka:
image: 'bitnami/kafka@sha256:e1870e20581f8ca7507986be980c64ceb4d9138ffad1b380c1036d5a82ec1bfe'
networks:
- hanghae-network
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENERS=LC://kafka:29092,LX://kafka:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=LC://kafka:29092,LX://${DOCKER_HOST_IP:-localhost}:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=LC:PLAINTEXT,LX:PLAINTEXT
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=LC
- BITNAMI_DEBUG=true
- KAFKA_ENABLE_KRAFT=false
depends_on:
- zookeeper
kafka-ui:
image: provectuslabs/kafka-ui
container_name: kafka-ui
networks:
- hanghae-network
ports:
- "8989:8080"
restart: always
depends_on:
- kafka
- zookeeper
environment:
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:29092
- KAFKA_CLUSTERS_0_ZOOKEEPER=zookeeper:2181
networks:
hanghae-network:
driver: bridge