Run WordPress with nginx using Docker Compose.
Use WordPress locally with Docker using Docker compose
Dockerfile
for extending a base image and using a custom Docker image with an automated build on Docker Hub
./nginx
php.ini
config in ./config
nginx
, wordpress
and mariadb
./config
See the new Wiki
.env-example
to .env.example
to match the git ignore patterns. Thanks @scottnunemacher
./src/.env-example
, it should be ./src/.env.example
.NGINX_ENVSUBST_TEMPLATE_SUFFIX
. Use a template and better substution of ENV variables in nginx config.DB_HOST
. Generated database connection error in macOS Catalina. Thanks to @nirvanadev
/etc/hosts
betterEntrypoint
command in Docker Compose to replace the domain name in the nginx config. Removing the need to manually edit the domain name in the nginx conf. Now using the .env
value DOMAIN
.env-example
Thanks to @Dave3o3
.env
support for specifying your own app name, domain etc in Docker and cli scripts.