오윤석

db password 저장 파일명 변경

/app/config
/app/config/*.secret
/app/node/node_modules
\ No newline at end of file
......
......@@ -58,10 +58,10 @@ services:
- mariadb:/var/lib/mysql
- ./config:/config
environment:
MYSQL_ROOT_PASSWORD_FILE: ./config/db_password.txt
MYSQL_ROOT_PASSWORD_FILE: ./config/db_password.secret
MYSQL_DATABASE: maple
MYSQL_USER: maple
MYSQL_PASSWORD_FILE: ./config/db_password.txt
MYSQL_PASSWORD_FILE: ./config/db_password.secret
TZ: Asia/Seoul
command: --character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
restart: on-failure
......
......@@ -9,7 +9,7 @@ app.use(bodyParser.json());
var db;
fs.readFile('./config/db_password.txt', function(err, data) {
fs.readFile('./config/db_password.secret', function(err, data) {
db = mysql.createConnection({
host: "172.28.0.4",
port: 3306,
......