GithubHelp home page GithubHelp logo

dev-abibes / docker-production-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nidr0x/docker-production-wordpress

0.0 0.0 0.0 1.83 MB

๐Ÿณ Slim rootless Docker WordPress image with extras

License: MIT License

Shell 10.84% PHP 14.68% Dockerfile 74.48%

docker-production-wordpress's Introduction

rootless WordPress Docker Container

This Dockerfile installs WordPress 6.x, along with the latest wp-cli (used to download the WordPress as well), supervisor, nginx 1.24, and PHP-FPM 8.1 (on-demand PM) on Alpine Linux. It's designed as a rootless image, for heavy-load production sites and is currently being used in multiple environments without any issues.

The wp-config.php file included in this container is configured to use environmental variables, making management much easier. The nginx configuration has also been heavily tweaked and optimized. Additionally, the container runs a system cron instead of WP cron, as the latter is not very reliable.

Also, it has a script managed by supervisor process which copies all data automatically from /data and put into /usr/src/wordpress if you want to add files to the root folder, like robots.txt.

The current image size is around 80 MB, and the goal of this project is to make it even smaller.

Prerequisites

Before using this Docker image, make sure you have the following software installed:

  • Docker
  • docker-compose

Usage

To obtain this Docker image, simply pull it from the GHCR.

    $ docker pull ghcr.io/nidr0x/wordpress:latest

Usage with Docker-Compose

If you wish to spin up a running environment, you can use docker-compose.

    $ docker-compose up -d

Contribution

If you would like to contribute to this project, feel free to open an issue or submit a pull request on GitHub.

References

docker-production-wordpress's People

Contributors

nidr0x 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.