Wordpress based on debian bullseye with internal Mariadb and automated plugin installs. This has been created for wordpress sandbox environments so that you can run multiple wordpress installations in parallel and not have them step all over one another.
To run:
docker run -d \
--net="bridge" \
--name=wordpress \
-p 8081:80 \
-e SERVER_NAME=localhost \
-e URL="http://localhost:8081" \
-e ADMIN_NAME=admin \
-e ADMIN_PASSWORD=admin \
-e [email protected] \
-e PLUGINS='contact-form-7' \
-e TITLE='Wordpress-Title' \
-v wp-content:/content \
deb-wordpress:latest
Make sure the plugins are separated by a space.
The internal mariadb is not exposed by default. It runs on port 3306 with user root and password root. It is not intended to expose Mariadb externally; if that is required, it is suggested to use separate wordpress and mariadb containers.
If you have custom content, images, plugins, etc... add a wp-content directory and make it a docker volume. On the container's firt run, it will copy the contents into var/www/html.
If you want basic auth used over the entire wordpress site, set BASIC_AUTH_ENABLED=true in the container. ALLOWED_IP will restrict the site access to 1 IP. The basic auth will use the same admin credentials as wordpress admin.
If you appreciate my work, then please consider buying me a beer :D