chore: add MYSQL_PORT in env variable

This commit is contained in:
SKINMAKER 2025-04-11 20:17:56 +09:00
parent efdc10ea25
commit 6e37411764
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
KOREANBOTS_URL=http://localhost:3000
MYSQL_PORT=3306
MYSQL_HOST=mysql
MYSQL_USER=root
MYSQL_PASSWORD=YOUSHALLNOTPASS

View File

@ -3,6 +3,7 @@ import knex from 'knex'
export default knex({
client: 'mysql',
connection: {
port: Number(process.env.MYSQL_PORT) || 3306,
host: process.env.MYSQL_HOST || 'localhost',
user: process.env.MYSQL_USER || 'root',
password: process.env.MYSQL_PASSWORD || 'test',