Skip to content

Commit ff5940f

Browse files
committed
add mysql docker service
1 parent 4b429f0 commit ff5940f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/.pmd
99
/.springBeans
1010
/.idea/
11-
/ssmbootstrap_table.iml
11+
/ssmbootstrap_table.iml
12+
.env

mysql.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "3.9"
2+
services:
3+
mysql:
4+
image: mysql:5
5+
hostname: ssmbootstrap_table-mysql5
6+
container_name: ssmbootstrap_table-mysql5
7+
ports:
8+
- "3306:3306"
9+
environment:
10+
MYSQL_ROOT_PASSWORD: root
11+
restart: "no"
12+
volumes:
13+
- ./.env/mysql/conf:/etc/mysql/conf.d
14+
- ./.env/mysql/data:/var/lib/mysql

0 commit comments

Comments
 (0)