Skip to content

Commit ad8d5f2

Browse files
committed
build: updated docker-compose mysql
1 parent fd53f71 commit ad8d5f2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ services:
2222
- 3316:3306
2323
environment:
2424
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
2828

2929
redis:
3030
image: redis:alpine

integration/crud-typeorm/orm.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const withCache: TypeOrmModuleOptions = {
88
type,
99
host: '127.0.0.1',
1010
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',
1313
database: 'nestjsx_crud',
1414
synchronize: false,
1515
logging: !isNil(process.env.TYPEORM_LOGGING)

integration/crud-typeorm/orm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ mysql:
1414
type: mysql
1515
host: 127.0.0.1
1616
port: 3316
17-
username: root
18-
password: root
17+
username: nestjsx_crud
18+
password: nestjsx_crud
1919
database: nestjsx_crud
2020
entities:
2121
- ./**/*.entity.ts

0 commit comments

Comments
 (0)