{"id":13551772,"url":"https://github.com/tiredofit/docker-wordpress","last_synced_at":"2025-04-05T09:31:43.004Z","repository":{"id":53788931,"uuid":"101133059","full_name":"tiredofit/docker-wordpress","owner":"tiredofit","description":"Dockerized Content Management System many with customizable options","archived":false,"fork":false,"pushed_at":"2024-04-16T17:13:34.000Z","size":153,"stargazers_count":36,"open_issues_count":11,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-21T02:21:53.948Z","etag":null,"topics":["wordpress"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiredofit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["tiredofit"]}},"created_at":"2017-08-23T03:22:07.000Z","updated_at":"2024-11-22T07:23:11.000Z","dependencies_parsed_at":"2024-01-16T18:57:22.833Z","dependency_job_id":"c7a8ab31-307e-4206-92e0-b20eb569d7f2","html_url":"https://github.com/tiredofit/docker-wordpress","commit_stats":null,"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiredofit","download_url":"https://codeload.github.com/tiredofit/docker-wordpress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318253,"owners_count":20919456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress"],"created_at":"2024-08-01T12:01:53.489Z","updated_at":"2025-04-05T09:31:41.169Z","avatar_url":"https://github.com/tiredofit.png","language":"Python","funding_links":["https://github.com/sponsors/tiredofit","https://www.paypal.me/tiredofit"],"categories":["Python"],"sub_categories":[],"readme":"# github.com/tiredofit/docker-wordpress\n\n[![GitHub release](https://img.shields.io/github/v/tag/tiredofit/docker-wordpress?style=flat-square)](https://github.com/tiredofit/docker-wordpress/releases/latest)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/tiredofit/docker-wordpress/main.yml?branch=main\u0026style=flat-square)](https://github.com/tiredofit/docker-wordpress/actions)\n[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/wordpress.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/tiredofit/wordpress/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/wordpress.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/tiredofit/wordpress/)\n[![Become a sponsor](https://img.shields.io/badge/sponsor-tiredofit-181717.svg?logo=github\u0026style=flat-square)](https://github.com/sponsors/tiredofit)\n[![Paypal Donate](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square)](https://www.paypal.me/tiredofit)\n## About\n\nThis will build a Docker Image for [Wordpress](https://www.wordpress.org/). A web based content management system. It will:\n\n* Automatically Download latest version of Wordpress\n* Configure `wp-config.php` for you\n* Install Database\n* Configure the website with basic information\n* Automatically rotate URLs on subsequent boots if they have changed\n* Includes [WP-CLI](http://wp-cli.org/)\n\n## Maintainer\n\n- [Dave Conroy](https://github.com/tiredofit/)\n\n## Table of Contents\n\n- [About](#about)\n- [Maintainer](#maintainer)\n- [Table of Contents](#table-of-contents)\n- [Prerequisites and Assumptions](#prerequisites-and-assumptions)\n- [Installation](#installation)\n  - [Build from Source](#build-from-source)\n  - [Prebuilt Images](#prebuilt-images)\n    - [Multi Architecture](#multi-architecture)\n- [Configuration](#configuration)\n  - [Quick Start](#quick-start)\n  - [Persistent Storage](#persistent-storage)\n  - [Environment Variables](#environment-variables)\n    - [Base Images used](#base-images-used)\n  - [Networking](#networking)\n- [Maintenance](#maintenance)\n  - [Shell Access](#shell-access)\n  - [Local Development / Changing Site Name \\\u0026 Ports](#local-development--changing-site-name--ports)\n  - [Command Line](#command-line)\n- [Support](#support)\n  - [Usage](#usage)\n  - [Bugfixes](#bugfixes)\n  - [Feature Requests](#feature-requests)\n  - [Updates](#updates)\n- [License](#license)\n- [Maintenance](#maintenance-1)\n  - [Shell Access](#shell-access-1)\n- [References](#references)\n\n## Prerequisites and Assumptions\n*  Assumes you are using some sort of SSL terminating reverse proxy such as:\n   *  [Traefik](https://github.com/tiredofit/docker-traefik)\n   *  [Nginx](https://github.com/jc21/nginx-proxy-manager)\n   *  [Caddy](https://github.com/caddyserver/caddy)\n\n## Installation\n\n### Build from Source\nClone this repository and build the image with `docker build \u003carguments\u003e (imagename) .`\n\n### Prebuilt Images\nBuilds of the image are available on [Docker Hub](https://hub.docker.com/r/tiredofit/wordpress)\n\n```bash\ndocker pull docker.io/tiredofit/wordpress:(imagetag)\n```\n\nBuilds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-wordpress/pkgs/container/docker-wordpress)\n\n```\ndocker pull ghcr.io/tiredofit/docker-wordpress:(imagetag)\n```\n\nThe following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md):\n\n| PHP version | OS     | Tag        |\n| ----------- | ------ | ---------- |\n| 8.3.x       | Alpine | `:php-8.3` |\n| 8.2.x       | Alpine | `:php-8.2` |\n| 8.1.x       | Alpine | `:php-8.1` |\n| 8.0.x       | Alpine | `:php-8.0` |\n| 7.4.x       | Alpine | `:php-7.4` |\n| 7.3.x       | Alpine | `:php-7.3` |\n| 7.2.x       | Alpine | `:php-7.2` |\n| 7.1.x       | Alpine | `:php-7.1` |\n| 7.0.x       | Alpine | `:php-7.0` |\n| 5.6.x       | Alpine | `:php5.6`  |\n\n#### Multi Architecture\nImages are built primarily for `amd64` architecture, and may also include builds for `arm/v7`, `arm64` and others. These variants are all unsupported. Consider [sponsoring](https://github.com/sponsors/tiredofit) my work so that I can work with various hardware. To see if this image supports multiple architecures, type `docker manifest (image):(tag)`\n\n\n## Configuration\n### Quick Start\n\n* The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [compose.yml](examples/compose.yml) that can be modified for development or production use.\n\n* Set various [environment variables](#environment-variables) to understand the capabilities of this image.\n* Map [persistent storage](#data-volumes) for access to configuration and data files for backup.\n\n### Persistent Storage\n\nThe following directories are used for configuration and can be mapped for persistent storage.\n\n| Directory        | Description                |\n| ---------------- | -------------------------- |\n| `/www/wordpress` | Root Wordpress Directory   |\n| `/www/logs`      | Nginx and php-fpm logfiles |\n\n### Environment Variables\n\n#### Base Images used\n\nThis image relies on an [Alpine Linux](https://hub.docker.com/r/tiredofit/alpine) base image that relies on an [init system](https://github.com/just-containers/s6-overlay) for added capabilities. Outgoing SMTP capabilities are handlded via `msmtp`. Individual container performance monitoring is performed by [zabbix-agent](https://zabbix.org). Additional tools include: `bash`,`curl`,`less`,`logrotate`,`nano`.\n\nBe sure to view the following repositories to understand all the customizable options:\n\n| Image                                                         | Description                            |\n| ------------------------------------------------------------- | -------------------------------------- |\n| [OS Base](https://github.com/tiredofit/docker-alpine/)        | Customized Image based on Alpine Linux |\n| [Nginx](https://github.com/tiredofit/docker-nginx/)           | Nginx webserver                        |\n| [PHP-FPM](https://github.com/tiredofit/docker-nginx-php-fpm/) | PHP Interpreter                        |\n\n| Parameter                    | Description                                                                                                       | Default            | `_FILE` |\n| ---------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------ | ------- |\n| `ADMIN_EMAIL`                | Email address for the Administrator - Needed for initial startup                                                  |                    | x       |\n| `ADMIN_USER`                 | Username for the Administrator - Needed for initial startup                                                       | `admin`            | x       |\n| `ADMIN_PASS`                 | Password for the Administrator - Needed for initial startup                                                       |                    | x       |\n| `ENABLE_HTTPS_REVERSE_PROXY` | Tweak nginx to run behind a reverse proxy for URLs `TRUE` / `FALSE`                                               | `TRUE`             |         |\n| `DB_CHARSET`                 | MariaDB character set for tables                                                                                  | `utf8mb4`          |         |\n| `DB_HOST`                    | MariaDB external container hostname (e.g. wordpress-db)                                                           |                    | x       |\n| `DB_NAME`                    | MariaDB database name i.e. (e.g. wordpress)                                                                       |                    | x       |\n| `DB_USER`                    | MariaDB username for database (e.g. wordpress)                                                                    |                    | x       |\n| `DB_PASS`                    | MariaDB password for database (e.g. userpassword)                                                                 |                    | x       |\n| `DB_PORT`                    | MariaDB port for database                                                                                         | `3306`             | x       |\n| `DB_PREFIX`                  | MariaDB Prefix for `DB_NAME`                                                                                      | `wp_`              | x       |\n| `DEBUG_MODE`                 | Enable Debug Mode (verbosity) for the container installation/startup and in application - `TRUE` / `FALSE`        | `FALSE`            |         |\n| `ROTATE_KEYS`                | Rotate Salts and Keys on subsequent reboots `TRUE` / `FALSE`                                                      | `FALSE`            |         |\n| `SITE_LOCALE`                | What Locale to set site                                                                                           | `en_US`            |         |\n| `SITE_PORT`                  | What Port does wordpress deliver assets to                                                                        | `80`               |         |\n| `SITE_TITLE`                 | The title of the Website                                                                                          | `Docker Wordpress` |         |\n| `SITE_URL`                   | The Full site URL of the installation e.g. `wordpress.example.com` - Needed for initial startup                   |                    |         |\n| `SITE_URL_UPDATE_MODE`       | After first install, perform modifications to wp-config.php and DB if different Site URL `FILE` `DB` `ALL` `NONE` | `ALL`              |         |\n| `UPDATE_MODE`                | `ALL` to enable all major, minor updates, `MINOR` to only allow minor updates `NONE` to disable all updates       | `minor`            |         |\n\n### Networking\n\nThe following ports are exposed.\n\n| Port | Description |\n| ---- | ----------- |\n| `80` | HTTP        |\n\n* * *\n## Maintenance\n\n### Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell.\n\n```bash\ndocker exec -it (whatever your container name is) bash\n```\n### Local Development / Changing Site Name \u0026 Ports\n\nWordpress assets are delivered by means of the initial Site URL, and if you wish to develop locally or on a different port you will experience strange results. If you are performing local development then you would want to setup your environment variables as such:\n\n- `ENABLE_HTTPS_REVERSE_PROXY=FALSE`\n- `SITE_URL=localhost`\n- `SITE_PORT=8000` (or whatever port you are exposing)\n\nWhen you are ready to deploy to a production URL - you would change it as such:\n- `ENABLE_HTTPS_REVERSE_PROXY=TRUE`\n- `SITE_URL=www.domain.com`\n\nThe system will rotate the URLs in the wordpress configuration files and database automatically upon restart of the container.\n\n### Command Line\n\nIf you wish to use the included wp-cli tool to perform maintenance use it as such:\n\n````bash\ncd /www/wordpress\nwp-cli \u003cargument\u003e\n````\n\n## Support\n\nThese images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.\n### Usage\n- The [Discussions board](../../discussions) is a great place for working with the community on tips and tricks of using this image.\n- Consider [sponsoring me](https://github.com/sponsors/tiredofit) for personalized support\n### Bugfixes\n- Please, submit a [Bug Report](issues/new) if something isn't working as expected. I'll do my best to issue a fix in short order.\n\n### Feature Requests\n- Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.\n- Consider [sponsoring me](https://github.com/sponsors/tiredofit) regarding development of features.\n\n### Updates\n- Best effort to track upstream changes, More priority if I am actively using the image in a production environment.\n- Consider [sponsoring me](https://github.com/sponsors/tiredofit) for up to date releases.\n\n## License\nMIT. See [LICENSE](LICENSE) for more details.\n## Maintenance\n### Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell.\n\n```bash\ndocker exec -it (whatever your container name is e.g. wordpress) bash\n```\n\n## References\n\n* https://www.wordpress.org\n* http://www.wp-cli.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiredofit%2Fdocker-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-wordpress/lists"}