File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change
1
+
1
2
services :
2
3
3
4
database :
@@ -13,6 +14,7 @@ services:
13
14
MYSQL_ROOT_PASSWORD : " 111111"
14
15
volumes :
15
16
- db-data:/var/lib/mysql
17
+ - ./init/init.sql:/docker-entrypoint-initdb.d/init.sql
16
18
networks :
17
19
- backend
18
20
healthcheck :
@@ -50,7 +52,7 @@ services:
50
52
build :
51
53
context : ./configserver
52
54
dockerfile : Dockerfile
53
- # environment:
55
+ # environment:
54
56
# CONFIGSERVER_URI: "http://configserver:9191"
55
57
# CONFIGSERVER_PORT: "9191"
56
58
ports :
@@ -139,8 +141,6 @@ services:
139
141
condition : service_started
140
142
eurekaserver :
141
143
condition : service_started
142
- keycloak :
143
- condition : service_started
144
144
ports :
145
145
- " 9000:9000"
146
146
networks :
@@ -196,8 +196,6 @@ services:
196
196
condition : service_started
197
197
eurekaserver :
198
198
condition : service_started
199
- rabbitmq :
200
- condition : service_started
201
199
ports :
202
200
- " 9001:9001"
203
201
networks :
@@ -231,8 +229,6 @@ services:
231
229
condition : service_started
232
230
eurekaserver :
233
231
condition : service_started
234
- rabbitmq :
235
- condition : service_started
236
232
ports :
237
233
- " 9003:9003"
238
234
networks :
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ CREATE DATABASE IF NOT EXISTS `springbootuser`;
5
5
-- CREATE USER 'root'@'localhost' IDENTIFIED BY 'local';
6
6
-- GRANT ALL ON *.* TO 'root'@'%';
7
7
8
+ -- GRANT ALL PRIVILEGES ON `springbootadvertisement`.* TO 'springmicroserviceuser'@'%' WITH GRANT OPTION;
9
+ -- GRANT ALL PRIVILEGES ON `springbootreport`.* TO 'springmicroserviceuser'@'%' WITH GRANT OPTION;
10
+ -- GRANT ALL PRIVILEGES ON `springbootuser`.* TO 'springmicroserviceuser'@'%' WITH GRANT OPTION;
11
+
8
12
GRANT ALL ON ` springbootadvertisement` .* TO ' springmicroserviceuser' @' %' ;
9
13
GRANT ALL ON ` springbootreport` .* TO ' springmicroserviceuser' @' %' ;
10
14
GRANT ALL ON ` springbootuser` .* TO ' springmicroserviceuser' @' %' ;
You can’t perform that action at this time.
0 commit comments