From 73e47cf37b179bd26d5399a1507a6aa25342954e Mon Sep 17 00:00:00 2001 From: Chopper Date: Wed, 19 May 2021 17:57:24 +0800 Subject: [PATCH] =?UTF-8?q?mysql=20=E6=97=A0=E6=B3=95=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a4e7515..e9fb3aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,10 +4,9 @@ services: restart: always image: mysql container_name: mysql - network_mode: host volumes: - ../volumes/data/mysqldata:/var/lib/mysql - - ../config/my.cnf:/etc/my.cnf + - ./config/my.cnf:/etc/my.cnf # 数据库还原目录 可将需要还原的sql文件放在这里 - ./init/mysql:/docker-entrypoint-initdb.d environment: