Skip to content

Commit

Permalink
Chore | #17 | @lcomment | MySql 도커 파일 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed May 10, 2024
1 parent 098fd1e commit 762d6d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infra/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mysql:8.0.35

ENV MYSQL_ROOT_PASSWORD=root_password
ENV MYSQL_DATABASE=databasename
ENV MYSQL_USER=username
ENV MYSQL_PASSWORD=password

EXPOSE 3306
2 changes: 2 additions & 0 deletions infra/mysql/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build --platform linux/amd64 -t mysql .
docker run --restart always -e TZ=Asia/Seoul --name mysql -d -p 3306:3306 mysql

0 comments on commit 762d6d0

Please sign in to comment.