From 99a10950606fe612f32542914750ad6f1be99be0 Mon Sep 17 00:00:00 2001 From: xunmao Date: Sat, 21 Mar 2020 01:36:40 +0900 Subject: [PATCH] Add a docker compose file to setup MySQL --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7e5f6373 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +# 关于Compose文件的具体说明,请参考以下链接: +# https://docs.docker.com/compose/compose-file/ + +version: "3.5" +services: + # 数据库的各种配置参数,请参考以下链接: + # https://github.com/piexlmax/gin-vue-admin/blob/master/QMPlusServer/db/qmplus.sql#L4-L8 + # https://github.com/piexlmax/gin-vue-admin/blob/master/QMPlusServer/static/config/config.json#L8-L14 + database: + image: mysql:5.6 + ports: + - 3306:3306 + volumes: + - ./QMPlusServer/db:/docker-entrypoint-initdb.d + environment: + MYSQL_ROOT_PASSWORD: Aa@6447985 + MYSQL_DATABASE: qmPlus + user: root