https://github.com/vegardit/docker-wordpress-ext
Docker image extending the official Wordpress docker image with support for LDAP auth, OPcache and reverse HTTPS proxies.
https://github.com/vegardit/docker-wordpress-ext
docker-image ldap opcache wordpress
Last synced: about 1 year ago
JSON representation
Docker image extending the official Wordpress docker image with support for LDAP auth, OPcache and reverse HTTPS proxies.
- Host: GitHub
- URL: https://github.com/vegardit/docker-wordpress-ext
- Owner: vegardit
- License: gpl-2.0
- Created: 2020-06-12T15:26:14.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T15:46:50.000Z (about 2 years ago)
- Last Synced: 2025-01-21T23:26:32.039Z (over 1 year ago)
- Topics: docker-image, ldap, opcache, wordpress
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/vegardit/docker-wordpress-ext/actions?query=workflow%3ABuild)
[](#license)
[](https://hub.docker.com/r/vegardit/wordpress-ext)
[](https://hub.docker.com/r/vegardit/wordpress-ext)
[](CODE_OF_CONDUCT.md)
1. [What is it?](#what-is-it)
1. [License](#license)
This docker image extends the official [Wordpress](https://wordpress.org) docker image [`wordpress:latest`](https://hub.docker.com/_/wordpress/?tab=tags&name=latest) with additional support for [LDAP auth](https://www.php.net/manual/en/book.ldap.php), [OPcache](https://www.php.net/manual/en/book.opcache.php) and reverse HTTPS proxies.
It is automatically built **daily** to include the latest OS security fixes.
1. Adds [PHP LDAP](https://www.php.net/manual/en/book.ldap.php) client support.
1. Enables the [php-production.ini](https://github.com/php/php-src/blob/master/php.ini-production) configuration.
1. Adds [OPcache](https://www.php.net/manual/en/book.opcache.php), wich can be configured via the following environment variables:
```bash
PHP_OPCACHE_ENABLE="1" # Enables the opcode cache
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" # Amount of memory used to store interned strings, in MB.
PHP_OPCACHE_LOG_VERBOSITY_LEVEL="1" # The log verbosity level. 0 to 4
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000"
PHP_OPCACHE_MAX_WASTED_PERCENTAGE="5" # The max. percentage of wasted memory before a restart is scheduled.
PHP_OPCACHE_MEMORY_CONSUMPTION="128" # Shared memory storage used, in MB.
PHP_OPCACHE_REVALIDATE_FREQ="2"
PHP_OPCACHE_VALIDATE_TIMESTAMPS="1" # If enabled, checks for updated scripts every $PHP_OPCACHE_REVALIDATE_FREQ seconds.
```
1. Configures force HTTPS Login / Admin UI via environment variables:
```bash
WP_FORCE_SSL_LOGIN="true" # default is "false"
WP_FORCE_SSL_ADMIN="true" # default is "false"
```
See https://wordpress.org/support/article/administration-over-ssl/
1. Enables support for reverse proxies (e.g. [Traefik](https://containo.us/traefik/)) via environment variable
```bash
WP_REVERSE_HTTPS_PROXY="true" # default is "false"
```
See https://wordpress.org/support/article/administration-over-ssl/#using-a-reverse-proxy
All files in this repository are released under the [GNU General Public License v2.0 or later](LICENSE.txt).
Individual files contain the following tag instead of the full license text:
```
SPDX-License-Identifier: GPL-2.0-or-later
```
This enables machine processing of license information based on the SPDX License Identifiers that are available here: https://spdx.org/licenses/.