Showing
3 changed files
with
4 additions
and
4 deletions
... | @@ -58,10 +58,10 @@ services: | ... | @@ -58,10 +58,10 @@ services: |
58 | - mariadb:/var/lib/mysql | 58 | - mariadb:/var/lib/mysql |
59 | - ./config:/config | 59 | - ./config:/config |
60 | environment: | 60 | environment: |
61 | - MYSQL_ROOT_PASSWORD_FILE: ./config/db_password.txt | 61 | + MYSQL_ROOT_PASSWORD_FILE: ./config/db_password.secret |
62 | MYSQL_DATABASE: maple | 62 | MYSQL_DATABASE: maple |
63 | MYSQL_USER: maple | 63 | MYSQL_USER: maple |
64 | - MYSQL_PASSWORD_FILE: ./config/db_password.txt | 64 | + MYSQL_PASSWORD_FILE: ./config/db_password.secret |
65 | TZ: Asia/Seoul | 65 | TZ: Asia/Seoul |
66 | command: --character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE | 66 | command: --character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE |
67 | restart: on-failure | 67 | restart: on-failure | ... | ... |
... | @@ -9,7 +9,7 @@ app.use(bodyParser.json()); | ... | @@ -9,7 +9,7 @@ app.use(bodyParser.json()); |
9 | 9 | ||
10 | var db; | 10 | var db; |
11 | 11 | ||
12 | -fs.readFile('./config/db_password.txt', function(err, data) { | 12 | +fs.readFile('./config/db_password.secret', function(err, data) { |
13 | db = mysql.createConnection({ | 13 | db = mysql.createConnection({ |
14 | host: "172.28.0.4", | 14 | host: "172.28.0.4", |
15 | port: 3306, | 15 | port: 3306, | ... | ... |
-
Please register or login to post a comment