LEMP stack network containers for WordPress development.
-
Rename
.env-exampleto.envand update contents. -
mkcert -installTODO - give better instructions (for Windows, download binary mkcert-v1.4.4-windows-amd64.exe for mkcert, copy toC:/mkcert, rename tomkcert.exe, addC:/mkcertto Windows PATH,cd /nginx/certs, TODO - add commands, etc)* here's a how to, no need to use Chocolatey if the above was done https://www.haveiplayedbowie.today/blog/posts/secure-localhost-with-mkcert/
-
Check
php.dockerfilefor additional options -
WordPress: Either copy an existing project to, or download WordPress and unzip in
wordpressor skip and continue for wp-cli option -
Only if you skipped previous step:
cd wordpressthen rundocker-compose run --rm wp core download -
Use wp-cli from project root, example:
docker-compose run --rm wp user list -
docker-compose up -d --build site