Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonrupf/docker-php-wp
Stack of nginx web and PHP fpm servers for running wordpress.
https://github.com/simonrupf/docker-php-wp
Last synced: about 2 months ago
JSON representation
Stack of nginx web and PHP fpm servers for running wordpress.
- Host: GitHub
- URL: https://github.com/simonrupf/docker-php-wp
- Owner: simonrupf
- Created: 2020-11-13T06:07:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T05:03:24.000Z (over 1 year ago)
- Last Synced: 2023-07-10T06:21:31.842Z (over 1 year ago)
- Language: Makefile
- Homepage: https://hub.docker.com/r/simonrupf/php-wp
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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](https://hub.docker.com/r/simonrupf/php/dockerfile).
## 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
```shell
make help
```