Giter Club home page Giter Club logo

docker-php-wp's Introduction

PHP with MySQL support and additional modules for use with Wordpress

Stack of nginx web and PHP fpm servers for running Wordpress. This image doesn't contain Wordpress itself, just PHP fpm incl. MySQL and other modules and nginx.

For best performance, install and enable the WP Super Cache plugin.

See also the base image.

Environment variables

The image supports the use of the following two environment variables to adjust the timezone. This is useful to ensure the logs show the correct local time.

  • TZ
  • PHP_TZ

Volumes

It is recommended to use a tmpfs for /run and /tmp. /var/tmp/nginx can contain larger files during caching or uploads, so best leave this as a regular volume. Attach your PHP application into /var/www/public.

If your application can be separated into a public and a non-public part, attach it to /var/www instead and ensure the public bits live in a folder called public. This is typically used to separate static files (CSS, ECMAscripts, images, fonts) and the index.php entrypoint from PHP libraries and (uploaded) files that should not be directly accessible for security reasons.

  • /run: PID files and sockets
  • /tmp: temporary data of PHP (i.e. sessions) and supervisord
  • /var/tmp/nginx: temporary data of nginx (i.e. uploads, large responses)
  • /var/www/public or /var/www: contents of your PHP application - owner 100, group 82, mode 0750

Network ports

  • 8080/tcp: HTTP

Usage

make help

docker-php-wp's People

Contributors

simonrupf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.