docker_practice/appendix/repo/wordpress.md

26 lines
815 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# [WordPress](https://hub.docker.com/_/wordpress/)
##
[WordPress](https://en.wikipedia.org/wiki/WordPress) 是开源的 Blog 和内容管理系统框架,它基于 PHP 和 MySQL。
`https://hub.docker.com/_/wordpress/` WordPress 4.x ~ 5.x
## 使
MySQL `80`
```bash
$ docker run --name some-wordpress --link some-mysql:mysql -d wordpress
```
WordPress
* `WORDPRESS_DB_USER` `root`
* `WORDPRESS_DB_PASSWORD` mysql `MYSQL_ROOT_PASSWORD`
* `WORDPRESS_DB_NAME` `wordpress`
## Dockerfile
https://github.com/docker-library/docs/tree/master/wordpress 查看。