Skip to content

Commit

Permalink
add mysql docker service
Browse files Browse the repository at this point in the history
  • Loading branch information
netbuffer committed Jun 29, 2023
1 parent d5fac58 commit d479622
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
/.pmd
/.springBeans
/.idea/
/ssmbootstrap_table.iml
/ssmbootstrap_table.iml
.env
14 changes: 14 additions & 0 deletions mysql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.9"
services:
mysql:
image: mysql:5
hostname: ssmbootstrap_table-mysql5
container_name: ssmbootstrap_table-mysql5
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
restart: "no"
volumes:
- ./.env/mysql/conf:/etc/mysql/conf.d
- ./.env/mysql/data:/var/lib/mysql

0 comments on commit d479622

Please sign in to comment.