Skip to content

Commit 5f55dd4

Browse files
committed
Task 63 : Update docker-compose.yml and init.sql
1 parent 61d67f7 commit 5f55dd4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
services:
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:

init/init.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
812
GRANT ALL ON `springbootadvertisement`.* TO 'springmicroserviceuser'@'%';
913
GRANT ALL ON `springbootreport`.* TO 'springmicroserviceuser'@'%';
1014
GRANT ALL ON `springbootuser`.* TO 'springmicroserviceuser'@'%';

0 commit comments

Comments
 (0)