A preconfigured wordpress server to use with my wordpress-project repo in the docker-compose.yml
1.1K
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 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
All environment variables are optional and likely not needed if you are just developing locally.
| Variable | Description | Default |
|---|---|---|
| MYSQL_DATABASE | database name to use | wordpress |
| MYSQL_USER | username to connect to db | wordpress |
| MYSQL_PASSWORD | password to use to connect to db | iekalj4h2e3hi |
| PREFIX | WordPress table prefix | wp_ |
| PORT | HTTP port for Apache | 80 |
| RESET_ADMIN | Updates the primary user login to admin with a password of changeme when the value is 1 | blank |
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.
Content type
Image
Digest
sha256:e3e0ceacb…
Size
711.9 MB
Last updated
about 2 years ago
docker pull iamfrisbee/wordpress