Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

6 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Docker Base Images for WordPress

This repo builds base Docker base images for WordPress.

Build Arguments

The following variables can be only be configured at build.

Build Arg Description
WORDPRESS_VERSION WordPress version
PHP_VERSION PHP version
PHP_EXTENSIONS Additional extensions to install (using mlocati/docker-php-extension-installer)
FLAVOR Base image type. One of apache, fpm-alpine, or cli

Runtime Configuration

PHP Configuration

The following variables can be configured at build (Typically with an ARG in the Dockerfile) or during runtime (With environment variables).

Build Arg Description Default
PHP_MAX_EXECUTION_TIME See max_execution_time. 30
PHP_MAX_INPUT_VARS See max_input_vars. 1000
PHP_MEMORY_LIMIT See memory_limit. 256M
PHP_POST_MAX_SIZE See post_max_size. 32M
PHP_UPLOAD_MAX_FILESIZE See upload_max_filesize. 8M
PHP_MAX_FILE_UPLOADS See max_file_uploads. 20

Search Engine Visibility

The blog_public option (Settings > Reading > "Discourage search engines from indexing this site") can be forced via env so that dev sites are never accidentally indexed.

Environment Variable Description Default
WP_BLOG_PUBLIC Forces search engine visibility. false discourages indexing, true allows it. When unset, the setting is left editable in the admin. (unset)

File Modifications

Environment Variable Description Default
DISALLOW_FILE_EDIT Disables the plugin and theme file editors in the admin. See DISALLOW_FILE_EDIT. true
DISALLOW_FILE_MODS Disables installing, updating, and deleting plugins, themes, and core from the admin (implies DISALLOW_FILE_EDIT). When unset, it is left undefined so a managed mu-plugin can set it instead. (unset)

Both accept true/false, 1/0, yes/no, or on/off.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages