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: