LEMP stack network containers for WordPress development.
-
Rename
.env-example
to.env
and update contents. -
mkcert -install
TODO - give better instructions (for Windows, download binary mkcert-v1.4.4-windows-amd64.exe for mkcert, copy toC:/mkcert
, rename tomkcert.exe
, addC:/mkcert
to 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.dockerfile
for additional options -
WordPress: Either copy an existing project to, or download WordPress and unzip in
wordpress
or skip and continue for wp-cli option -
Only if you skipped previous step:
cd wordpress
then 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