Skip to content

Commit

Permalink
update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed Sep 17, 2024
1 parent 13ee00c commit 0b56e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist
*.log
.DS_Store
node_modules
.nuxt
.nuxt
.docker-compose/mysql/data
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
MYSQL_ROOT_PASSWORD: 123456
volumes:
- .docker-compose/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d # 初始化脚本件目录, 这个目录中的.sh/sql文件会以字母顺序依次执行
- /data/mysql:/var/lib/mysql # 挂载数据件目录.如果非root账号执行,挂载目录必须是登录账号下目录
- .docker-compose/mysql/data:/var/lib/mysql # 挂载数据件目录如果非root账号执行,挂载目录必须是登录账号下目录
restart: always
healthcheck:
test: '/usr/bin/mysql --user=bbsgo --password=123456 bbsgo_db --execute "SHOW TABLES;"'
Expand Down

0 comments on commit 0b56e4f

Please sign in to comment.