#docker-nginx-wordpress Docker NGINX + WP + W3 total cache Container
This container is optimized for running Wordpress and W3 total cache using NGINX
This container requires a seperate dedicated mysql container (timherman/mysql) to run. You can find timherman/mysql either at docker (https://registry.hub.docker.com/u/timherman/mysql/) or github (https://github.com/timHerman/docker-mysql)
docker run -d --name="be.punk.www.mysql" -e "MYSQL_LOCAL_USER=[username]" -e "MYSQL_LOCAL_DATABASE=[database]" -e "MYSQL_LOCAL_PASSWORD=[password]" -v /location/of/mysqldata/at/host/:/var/lib/mysql/ timherman/mysql
docker run -d --name="be.punk.www.wordpress" -p 80:80 -v /location/of/wordpressdata/at/host/:/var/www/ --link be.punk.www.mysql:db timherman/nginx-wordpress
In our example the wordpress container is linked to the mysql container under the alias db. This means that you'll have to edit your wp-config file in such a way that the mysql host is no longer localhost but db.
/** MySQL hostname */
define('DB_HOST', 'db');
For more information leave a message or visit http://www.punk.be
Regards, Tim
Inspiration from: https://rtcamp.com/wordpress-nginx/tutorials/single-site/w3-total-cache/ https://github.com/bradleyboy/docker-koken-nginx/blob/master/Dockerfile
Content type
Image
Digest
sha256:0baf5928b…
Size
156.5 MB
Last updated
about 11 years ago
docker pull timherman/nginx-wordpress