Skip to content

Commit fc9ca6d

Browse files
committed
MySQL容器ip段
1 parent f4709e1 commit fc9ca6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ dnmp
163163
> 注意:crontab定时执行Docker 任务的时候是不需要添加参数 `-it`。`-t`是分配一个伪终端,但是crontab执行的时候实际是不需要的。
164164
* 项目配置文件建议:
165165
* root 默认不开开启远程访问
166-
* 新建项目用户 `www`,配置访问权限只允许容器ip段访问
166+
* 新建项目用户 `www`,配置主机`Host`字段值为MySQL容器ip段`172.18.0.%`
167167
* 查看容器IP address:`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' lnmp-mysql`
168168
169169
### PHP管理

0 commit comments

Comments
 (0)