Sign inSign up

iamfrisbee/wordpress

By iamfrisbee

Updated about 2 years ago

A preconfigured wordpress server to use with my wordpress-project repo in the docker-compose.yml

Image
Developer tools
0

1.1K

iamfrisbee/wordpress repository overview

WordPress Image

This image can be used to quickly standup a wordpress site locally. Use the wordpress directory to help setup a quick environment to run WordPress locally.

Mount directories

Mount the directories that are custom in your environment like plugins or themes to /var/www/html. For example, if you are trying to do theme development, you can mount your themes folder to ./themes:/var/www/html/themes

Environment variables

All environment variables are optional and likely not needed if you are just developing locally.

VariableDescriptionDefault
MYSQL_DATABASEdatabase name to usewordpress
MYSQL_USERusername to connect to dbwordpress
MYSQL_PASSWORDpassword to use to connect to dbiekalj4h2e3hi
PREFIXWordPress table prefixwp_
PORTHTTP port for Apache80
RESET_ADMINUpdates the primary user login to admin with a password of changeme when the value is 1blank

Restoring Your Existing Database

Mount the directory with your SQL scripts to /src/db. The startup command will restore them on the first run. You cannot add the files later as it will not do this on subsequent runs.

Tag summary

Content type

Image

Digest

sha256:e3e0ceacb

Size

711.9 MB

Last updated

about 2 years ago

docker pull iamfrisbee/wordpress