{"id":20682242,"url":"https://github.com/yobasystems/alpine-php-wordpress","last_synced_at":"2025-04-22T12:13:14.227Z","repository":{"id":53916825,"uuid":"68106192","full_name":"yobasystems/alpine-php-wordpress","owner":"yobasystems","description":"Wordpress running on Alpine Linux [Docker]","archived":false,"fork":false,"pushed_at":"2025-01-31T16:14:11.000Z","size":189,"stargazers_count":32,"open_issues_count":1,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-22T12:13:01.492Z","etag":null,"topics":["alpine","alpine-linux","alpine-php-wordpress","docker","docker-image","dockerfile","php","wordpress","yobasystems"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/yobasystems/alpine-php-wordpress/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yobasystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-09-13T12:27:20.000Z","updated_at":"2025-03-11T10:58:01.000Z","dependencies_parsed_at":"2023-10-03T16:46:00.974Z","dependency_job_id":"f198c40e-d3ab-4f2c-b87d-8f26b32943ee","html_url":"https://github.com/yobasystems/alpine-php-wordpress","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yobasystems%2Falpine-php-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yobasystems%2Falpine-php-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yobasystems%2Falpine-php-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yobasystems%2Falpine-php-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yobasystems","download_url":"https://codeload.github.com/yobasystems/alpine-php-wordpress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237833,"owners_count":21397401,"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":["alpine","alpine-linux","alpine-php-wordpress","docker","docker-image","dockerfile","php","wordpress","yobasystems"],"created_at":"2024-11-16T22:13:06.431Z","updated_at":"2025-04-22T12:13:14.219Z","avatar_url":"https://github.com/yobasystems.png","language":"Dockerfile","readme":"# Wordpress Container image running on Alpine Linux\n\n[![Docker Automated build](https://img.shields.io/docker/automated/yobasystems/alpine-php-wordpress.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/yobasystems/alpine-php-wordpress/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/yobasystems/alpine-php-wordpress.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/yobasystems/alpine-php-wordpress/)\n[![Docker Stars](https://img.shields.io/docker/stars/yobasystems/alpine-php-wordpress.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/yobasystems/alpine-php-wordpress/)\n\n[![Alpine Version](https://img.shields.io/badge/Alpine%20version-v3.21.2-green.svg?style=for-the-badge\u0026logo=alpine-linux)](https://alpinelinux.org/)\n[![Wordpress Version](https://img.shields.io/badge/Wordpress%20version-vlatest-green.svg?style=for-the-badge\u0026logo=wordpress)](https://www.wordpress.org/en/)\n\n\n\nThis Container image [(yobasystems/alpine-php-wordpress)](https://hub.docker.com/r/yobasystems/alpine-php-wordpress/) is based on the minimal [Alpine Linux](http://alpinelinux.org/) ready for running [WordPress](https://www.wordpress.org/). (Requires external database)\n\n### Alpine Version 3.21.2 (Released 2025-01-06)\n##### Wordpress Version latest\n##### PHP Version 8.4.3\n##### Nginx Version 1.26.2\n\n----\n\n\n## Table of Contents\n\n- [What is Alpine Linux?](#what-is-alpine-linux)\n- [Features](#features)\n- [Architectures](#architectures)\n- [Tags](#tags)\n- [Layers \u0026 Sizes](#layers--sizes)\n- [How to use this image](#how-to-use-this-image)\n- [Image contents \u0026 Vulnerability analysis](#image-contents--vulnerability-analysis)\n- [Source Repositories](#source-repositories)\n- [Container Registries](#container-registries)\n- [Links](#links)\n- [Donation](#donation)\n\n\n## 🏔️ What is Alpine Linux?\nAlpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Container images.\n\n## What is Wordpress?\nWordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it's probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.\n\n## ✨ Features\n\n* Minimal size only, minimal layers\n* Memory usage is minimal on a simple install.\n\n## 🏗️ Architectures\n\n* ```:amd64```, ```:x86_64``` - 64 bit Intel/AMD (x86_64/amd64)\n* ```:arm64v8```, ```:aarch64``` - 64 bit ARM (ARMv8/aarch64)\n* ```:arm32v7```, ```:armhf``` - 32 bit ARM (ARMv7/armhf)\n\n#### 📝 PLEASE CHECK TAGS BELOW FOR SUPPORTED ARCHITECTURES, THE ABOVE IS A LIST OF EXPLANATION\n\n## 🏷️ Tags\n\n* ```:latest``` latest branch based (Automatic Architecture Selection)\n* ```:amd64```, ```:x86_64```  amd64 based on latest tag but amd64 architecture\n* ```:aarch64```, ```:arm64v8``` Armv8 based on latest tag but arm64 architecture\n* ```:armhf```, ```:arm32v7``` Armv7 based on latest tag but arm32 architecture\n\n## 📏 Layers \u0026 Sizes\n\n![Version](https://img.shields.io/badge/version-amd64-blue.svg?style=for-the-badge)\n![MicroBadger Layers (tag)](https://img.shields.io/docker/layers/yobasystems/alpine-php-wordpress/amd64.svg?style=for-the-badge)\n![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/yobasystems/alpine-php-wordpress/amd64.svg?style=for-the-badge)\n\n![Version](https://img.shields.io/badge/version-aarch64-blue.svg?style=for-the-badge)\n![MicroBadger Layers (tag)](https://img.shields.io/docker/layers/yobasystems/alpine-php-wordpress/aarch64.svg?style=for-the-badge)\n![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/yobasystems/alpine-php-wordpress/aarch64.svg?style=for-the-badge)\n\n![Version](https://img.shields.io/badge/version-armhf-blue.svg?style=for-the-badge)\n![MicroBadger Layers (tag)](https://img.shields.io/docker/layers/yobasystems/alpine-php-wordpress/armhf.svg?style=for-the-badge)\n![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/yobasystems/alpine-php-wordpress/armhf.svg?style=for-the-badge)\n\n\n## Volume structure\n\n* `/usr/html`: Webroot\n\n\n## 🚀 How to use this image\n\n## Creating an instance\n\nMake sure you create the folder on the host before starting the container and obtain the correct permissions.\n\n```\nmkdir -p /data/{domain}/html\n\ndocker run -e VIRTUAL_HOST={domain}.com,www.{domain}.com -v /data/{domain}/html:/usr/html -p 80:80 yobasystems/alpine-php-wordpress\n\nE.G\n\nmkdir -p /data/yobasystems/html\n\ndocker run -e VIRTUAL_HOST=yobasystems.co.uk,www.yobasystems.co.uk -v /data/yobasystems/html:/usr/html -p 80:80 yobasystems/alpine-php-wordpress\n```\n\nThe following user and group id are used, the files should be set to this:\nUser ID:\nGroup ID:\n\n```\nchown -R 100:101 /data/{domain}/html\n\nE.G\n\nchown -R 100:101 /data/yobasystems/html\n```\n\nPopulate /data/{domain}/html with your WP files.\n\n\nThe following user and group id are used, the files should be set to this:\n\nUser ID:\n\nGroup ID:\n\n\n```\nchown -R 100:101 /data/{domain}/html\n```\n\n### WP-CLI\n\nThis image now includes WP-CLI wpcli.org baked in... Its best to `su nginx` before executing anything or else you can potentially compromise your host.\n\n```\ndocker exec -it \u003ccontainer_name\u003e bash\nsu nginx\ncd /usr/html\nwp-cli core download --locale=en_GB\n```\n\n### Redis Cache\n\nEdit the wp-config.php file and include the line;\n\n```\ndefine('WP_REDIS_HOST', 'redis');\n```\n\nThe next thing is to install the plugin [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)\n\n\n### SSL behind a proxy\n\nIf using SSL and running behind a proxy like HAproxy then the following needs to be added to the wp-config.php file (to stop infinite redirect);\n\n```\ndefine('FORCE_SSL_ADMIN', true);\nif (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)\n   $_SERVER['HTTPS']='on';\n```\n\n### Upload limit\n\nThe upload limit is 128 Megabytes.\n\n### Change php.ini value\nmodify files/php-fpm.conf\n\nTo modify php.ini variable, simply edit php-fpm.ini and add php_flag[variable] = value.\n\n```\nphp_flag[display_errors] = on\n```\n\n### PHP Modules\n#### List of available modules in Alpine Linux, not all these are installed.\n##### In order to install a php module do, (leave out the version number i.e. -5.6.11-r0\n```\ndocker exec \u003cimage_id\u003e apk add \u003cpkg_name\u003e\ndocker restart \u003cimage_name\u003e\n```\nExample:\n\n```\ndocker exec \u003cimage_id\u003e apk add php84-soap\ndocker restart \u003cimage_name\u003e\n```\n\n```\nphp84-common\nphp84-pdo_sqlite\nphp84-pear\nphp84-ftp\nphp84-imap\nphp84-mysqli\nphp84-json\nphp84-mbstring\nphp84-soap\nphp84-litespeed\nphp84-sockets\nphp84-bcmath\nphp84-opcache\nphp84-dom\nphp84-zlib\nphp84-gettext\nphp84-fpm\nphp84-intl\nphp84-openssl\nphp84-session\nphp84-pdo_mysql\nphp84-embed\nphp84-xmlrpc\nphp84-wddx\nphp84-dba\nphp84-ldap\nphp84-xsl\nphp84-exif\nphp84-pdo_dblib\nphp84-bz2\nphp84-pdo\nphp84-pspell\nphp84-sysvmsg\nphp84-gmp\nphp84-apache2\nphp84-pdo_odbc\nphp84-shmop\nphp84-ctype\nphp84-phpdbg\nphp84-enchant\nphp84-sysvsem\nphp84-sqlite3\nphp84-odbc\nphp84-pcntl\nphp84-calendar\nphp84-xmlreader\nphp84-snmp\nphp84-zip\nphp84-posix\nphp84-iconv\nphp84-curl\nphp84-doc\nphp84-gd\nphp84-xml\nphp84-dev\nphp84-cgi\nphp84-sysvshm\nphp84-pgsql\nphp84-tidy\nphp84-pdo_pgsql\nphp84-phar\nphp84-mysqlnd\n```\n\n## Docker Compose example:\n\n```yalm\nwordpress:\n  image: yobasystems/alpine-php-wordpress\n  environment:\n    VIRTUAL_HOST: example.co.uk\n  expose:\n    - \"80\"\n  volumes:\n    - /data/example/www:/usr/html\n  restart: always\n  links:\n    - mysql:mysql\nmysql:\n  environment:\n    MYSQL_DATABASE: wordpressdb\n    MYSQL_PASSWORD: wordpresspass\n    MYSQL_ROOT_PASSWORD: ''\n    MYSQL_USER: wordpressuser\n  image: yobasystems/alpine-mariadb\n```\n\n## 🔍 Image contents \u0026 Vulnerability analysis\n\n| PACKAGE NAME          | PACKAGE VERSION | VULNERABILITIES |\n|-----------------------|-----------------|-----------------|\n\n\n## 📚 Source Repositories\n\n* [Github - yobasystems/alpine-php-wordpress](https://github.com/yobasystems/alpine-php-wordpress)\n* [Gitlab - yobasystems/alpine-php-wordpress](https://gitlab.com/yobasystems/alpine-php-wordpress)\n* [Bitbucket - yobasystems/alpine-php-wordpress](https://bitbucket.org/yobasystems/alpine-php-wordpress/)\n\n\n## 🐳 Container Registries\n\n* [Dockerhub - yobasystems/alpine-php-wordpress](https://hub.docker.com/r/yobasystems/alpine-php-wordpress/)\n* [Quay.io - yobasystems/alpine-php-wordpress](https://quay.io/repository/yobasystems/alpine-php-wordpress)\n* [GHCR - yobasystems/alpine-php-wordpress](https://ghcr.io/yobasystems/alpine-php-wordpress)\n\n\n## 🔗 Links\n\n* [Yoba Systems](https://yoba.systems/)\n* [Github - Yoba Systems](https://github.com/yobasystems/)\n* [Dockerhub - Yoba Systems](https://hub.docker.com/u/yobasystems/)\n* [Quay.io - Yoba Systems](https://quay.io/organization/yobasystems)\n* [GHCR - Yoba Systems](https://ghcr.io/yobasystems)\n* [Maintainer - Dominic Taylor](https://github.com/dominictayloruk)\n\n## 💰 Donation\n\n[![BMAC](https://img.shields.io/badge/BUY%20ME%20A%20COFFEE-£5-blue.svg?style=for-the-badge\u0026logo=buy-me-a-coffee)](https://www.buymeacoffee.com/dominictayloruk?new=1)\n\n[![BITCOIN](https://img.shields.io/badge/BTC-bc1q7hy8qmyvq7rw6slrna7yffcdnj9rcg4e9xjecc-blue.svg?style=for-the-badge\u0026logo=bitcoin)](bitcoin:bc1q7hy8qmyvq7rw6slrna7yffcdnj9rcg4e9xjecc)\n\n[![ETHEREUM](https://img.shields.io/badge/ETH-0xb6bE2e4da3d86b50Bdae1F9B6960c23dd87C532C-blue.svg?style=for-the-badge\u0026logo=ethereum)](ethereum:0xb6bE2e4da3d86b50Bdae1F9B6960c23dd87C532C)\n","funding_links":["https://www.buymeacoffee.com/dominictayloruk?new=1"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyobasystems%2Falpine-php-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyobasystems%2Falpine-php-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyobasystems%2Falpine-php-wordpress/lists"}