File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ services:
22
22
- 3316:3306
23
23
environment :
24
24
MYSQL_DATABASE : nestjsx_crud
25
- MYSQL_USER : root
26
- MYSQL_PASSWORD : root
27
- MYSQL_ROOT_PASSWORD : root
25
+ MYSQL_USER : nestjsx_crud
26
+ MYSQL_PASSWORD : nestjsx_crud
27
+ MYSQL_ROOT_PASSWORD : nestjsx_crud
28
28
29
29
redis :
30
30
image : redis:alpine
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export const withCache: TypeOrmModuleOptions = {
8
8
type,
9
9
host : '127.0.0.1' ,
10
10
port : type === 'postgres' ? 5455 : 3316 ,
11
- username : 'root' ,
12
- password : 'root' ,
11
+ username : type === 'mysql' ? 'nestjsx_crud' : 'root' ,
12
+ password : type === 'mysql' ? 'nestjsx_crud' : 'root' ,
13
13
database : 'nestjsx_crud' ,
14
14
synchronize : false ,
15
15
logging : ! isNil ( process . env . TYPEORM_LOGGING )
Original file line number Diff line number Diff line change 14
14
type : mysql
15
15
host : 127.0.0.1
16
16
port : 3316
17
- username : root
18
- password : root
17
+ username : nestjsx_crud
18
+ password : nestjsx_crud
19
19
database : nestjsx_crud
20
20
entities :
21
21
- ./**/*.entity.ts
You can’t perform that action at this time.
0 commit comments