Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

urre/wordpress-nginx-docker-compose

Repository files navigation

Docker Compose and WordPress

CI

Donate

Use WordPress locally with Docker using Docker compose

Contents

  • A Dockerfile for extending a base image and using a custom Docker image with an automated build on Docker Hub
  • PHP 8.1
  • Custom domain and HTTPS support. So you can use for example https://myapp.local
  • Custom nginx config in ./nginx
  • Custom PHP php.ini config in ./config
  • Volumes for nginx, wordpress and mariadb
  • Composer - dependency manager for PHP
  • Bedrock - modern development tools, easier configuration, and an improved secured folder structure for WordPress
  • WP-CLI - WP-CLI is the command-line interface for WordPress.
  • MailHog - An email testing tool for developers. Configure your outgoing SMTP server and view your outgoing email in a web UI.
  • PhpMyAdmin - free and open source administration tool for MySQL and MariaDB
    • PhpMyAdmin config in ./config
  • CLI script to create a SSL certificate using mkcert

Instructions and help

See the new Wiki

Changelog

2024年05月28日

2022年05月28日

2022年05月28日

  • Use php:8.0-fpm-alpine as the base image on the image in Dockerfile

2022年05月28日

  • Updated the Docker image to use PHP 8

2021年08月04日

  • Updated to WordPress 5.8.0

2021年03月16日

  • Changed root .env-example to .env.example to match the git ignore patterns. Thanks @scottnunemacher

2021年03月05日

  • Clarify steps in the readme

2021年03月02日

  • Fixed a misstake so instead of ./src/.env-example, it should be ./src/.env.example.
  • Redirect HTTP to HTTPS. Thanks @humblecoder

2021年01月02日

  • Use NGINX_ENVSUBST_TEMPLATE_SUFFIX. Use a template and better substution of ENV variables in nginx config.

2020年10月04日

  • Added mariadb-client (Solves #54)

2020年09月15日

  • Updated Bedrock. Update WordPress to 5.5.1 and other composer updates.

2020年07月12日

2020年05月03日

  • Added nginx gzip compression

2020年04月19日

  • Added Windows support for creating SSH cert, trusting it and setting up the host file entry. Thanks to @styssi

2020年04月12日

  • Remove port number from DB_HOST. Generated database connection error in macOS Catalina. Thanks to @nirvanadev
  • Add missing ENV variable from mariadb Thanks to @vonwa

2020年03月26日

2020年02月06日

  • Readme improvements. Explain /etc/hosts better

2020年01月30日

  • Use Entrypoint 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
  • Added APP_NAME in .env-example Thanks to @Dave3o3

2020年01月11日

  • Added .env support for specifying your own app name, domain etc in Docker and cli scripts.
  • Added phpMyAdmin. Visit http://127.0.0.1:8080/

2019年08月02日

Packages

No packages published

Contributors 11

AltStyle によって変換されたページ (->オリジナル) /