mysql 无法连接问题处理
parent
8b68c9c26f
commit
73e47cf37b
|
@ -4,10 +4,9 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
image: mysql
|
image: mysql
|
||||||
container_name: mysql
|
container_name: mysql
|
||||||
network_mode: host
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../volumes/data/mysqldata:/var/lib/mysql
|
- ../volumes/data/mysqldata:/var/lib/mysql
|
||||||
- ../config/my.cnf:/etc/my.cnf
|
- ./config/my.cnf:/etc/my.cnf
|
||||||
# 数据库还原目录 可将需要还原的sql文件放在这里
|
# 数据库还原目录 可将需要还原的sql文件放在这里
|
||||||
- ./init/mysql:/docker-entrypoint-initdb.d
|
- ./init/mysql:/docker-entrypoint-initdb.d
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue