feat: added mysql docker container

This commit is contained in:
원더 2021-01-13 10:07:54 +09:00
parent 77247acbfd
commit 39251501c9
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -30,6 +30,7 @@ yarn-error.log*
.env.development.local
.env.test.local
.env.production.local
.env.mysql.local
# vercel
.vercel

View File

@ -1,6 +1,18 @@
version: "3"
services:
mysql:
image: mariadb/server:10.5
hostname: mysqlBeta
ports:
- "3307:3306"
env_file:
- .env.mysql.local
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- /home/ubuntu/mysql-beta:/var/lib/mysql
koreanbots:
build: .
ports:

View File

@ -8,7 +8,7 @@
"start": "next start",
"lint": "eslint --ext ts,tsx .",
"lint:fix": "eslint --ext ts,tsx . --fix",
"docker": "docker-compose up -d"
"docker": "docker-compose up -d --build"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1",