docker_practice/appendix/repo/wordpress.md

26 lines
815 B
Go
Raw Normal View History

# [WordPress](https://hub.docker.com/_/wordpress/)
2016-12-10 17:00:25 +08:00
##
2016-12-10 17:00:25 +08:00
2017-11-24 10:19:15 +08:00
[WordPress](https://en.wikipedia.org/wiki/WordPress) 是开源的 Blog 和内容管理系统框架,它基于 PHP 和 MySQL。
2018-12-15 23:04:32 +08:00
`https://hub.docker.com/_/wordpress/` WordPress 4.x ~ 5.x
2016-12-10 17:00:25 +08:00
## 使
2017-11-24 10:19:15 +08:00
2016-12-10 17:00:25 +08:00
MySQL `80`
2017-11-22 11:13:23 +08:00
```bash
2016-12-10 17:00:25 +08:00
$ docker run --name some-wordpress --link some-mysql:mysql -d wordpress
```
2017-11-24 10:19:15 +08:00
2017-12-31 14:26:03 +08:00
WordPress
2016-12-10 17:00:25 +08:00
2017-12-31 14:26:03 +08:00
* `WORDPRESS_DB_USER` `root`
* `WORDPRESS_DB_PASSWORD` mysql `MYSQL_ROOT_PASSWORD`
* `WORDPRESS_DB_NAME` `wordpress`
2016-12-10 17:00:25 +08:00
## Dockerfile
2017-11-01 00:36:57 +08:00
https://github.com/docker-library/docs/tree/master/wordpress 查看。