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+
12services :
23
34 database :
@@ -13,6 +14,7 @@ services:
1314 MYSQL_ROOT_PASSWORD : " 111111"
1415 volumes :
1516 - db-data:/var/lib/mysql
17+ - ./init/init.sql:/docker-entrypoint-initdb.d/init.sql
1618 networks :
1719 - backend
1820 healthcheck :
@@ -50,7 +52,7 @@ services:
5052 build :
5153 context : ./configserver
5254 dockerfile : Dockerfile
53- # environment:
55+ # environment:
5456 # CONFIGSERVER_URI: "http://configserver:9191"
5557 # CONFIGSERVER_PORT: "9191"
5658 ports :
@@ -139,8 +141,6 @@ services:
139141 condition : service_started
140142 eurekaserver :
141143 condition : service_started
142- keycloak :
143- condition : service_started
144144 ports :
145145 - " 9000:9000"
146146 networks :
@@ -196,8 +196,6 @@ services:
196196 condition : service_started
197197 eurekaserver :
198198 condition : service_started
199- rabbitmq :
200- condition : service_started
201199 ports :
202200 - " 9001:9001"
203201 networks :
@@ -231,8 +229,6 @@ services:
231229 condition : service_started
232230 eurekaserver :
233231 condition : service_started
234- rabbitmq :
235- condition : service_started
236232 ports :
237233 - " 9003:9003"
238234 networks :
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ CREATE DATABASE IF NOT EXISTS `springbootuser`;
55-- CREATE USER 'root'@'localhost' IDENTIFIED BY 'local';
66-- GRANT ALL ON *.* TO 'root'@'%';
77
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+
812GRANT ALL ON ` springbootadvertisement` .* TO ' springmicroserviceuser' @' %' ;
913GRANT ALL ON ` springbootreport` .* TO ' springmicroserviceuser' @' %' ;
1014GRANT ALL ON ` springbootuser` .* TO ' springmicroserviceuser' @' %' ;
You can’t perform that action at this time.
0 commit comments