We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124d389 commit 44ef119Copy full SHA for 44ef119
Dockerfile
@@ -1,5 +1,5 @@
1
# https://hub.docker.com/_/node
2
-FROM node:12-slim
+FROM node:16-slim
3
4
# Create and change to the app directory.
5
WORKDIR /usr/src/app
src/config/adapter.js
@@ -36,13 +36,13 @@ exports.model = {
36
},
37
mysql: {
38
handle: mysql,
39
- database: 'blog',
+ database: process.env.MYSQL_DATABASE || 'blog',
40
prefix: 'ls_',
41
encoding: 'utf8',
42
- host: '127.0.0.1',
+ host: process.env.MYSQL_HOST || '127.0.0.1',
43
port: '',
44
- user: 'root',
45
- password: '123456',
+ user: process.env.MYSQL_USERNAME || 'root',
+ password: process.env.MYSQL_PASSWORD || '123456',
46
dateStrings: true
47
}
48
};
0 commit comments