wodby/docker4php
About
Docker-based PHP stack
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalDocker-based PHP stack
Introduction
Docker4PHP is a set of docker images optimized for PHP. Use
compose.yml file from the latest stable release to spin up local environment on Linux, Mac OS X and Windows.
- Read the docs on how to use
- Deploy to production with the PHP stack on Wodby
- Ask questions on Discord
- Ask questions on Slack
- Follow @wodbycloud for updates announcements
Stack
The PHP stack consists of the following containers:
| Container | Versions | Image | Enabled by default |
|---|---|---|---|
| Nginx | 1.31, 1.30 | wodby/nginx | ✓ |
| Apache | 2.4 | wodby/apache | |
| PHP | 8.5, 8.4, 8.3, 8.2 | wodby/php | ✓ |
| Crond | wodby/php | ||
| MariaDB | 12.3, 11.8, 11.4, 10.11, 10.6 | wodby/mariadb | ✓ |
| PostgreSQL | 18, 17, 16, 15, 14 | wodby/postgres | |
| Valkey | 9.1, 9.0, 8.1, 8.0, 7 | wodby/valkey | |
| Redis | 8.6, 8.4, 8.2, 7.4 | wodby/redis | |
| Memcached | 1 | wodby/memcached | |
| Node.js | 26, 24, 22 | wodby/node | |
| Vinyl (Varnish) | 9.1, 6.0 | wodby/vinyl | |
| Solr | 10, 9 | wodby/solr | |
| OpenSearch | 2 | opensearchproject/opensearch | |
| OpenSearch Dashboards | 2 | opensearchproject/opensearch-dashboards | |
| OpenSMTPD | 7 | wodby/opensmtpd | |
| Mailpit | latest | axllent/mailpit | ✓ |
| Gotenberg | latest | gotenberg/gotenberg | |
| Rsyslog | latest | wodby/rsyslog | |
| Webgrind | 1 | wodby/webgrind | |
| Xhprof viewer | latest | wodby/xhprof | |
| Adminer | 6 | wodby/adminer | |
| phpMyAdmin | latest | phpmyadmin/phpmyadmin | |
| Traefik | 3 | _/traefik | ✓ |
Documentation
Full documentation is available at https://wodby.com/docs/1.0/stacks/php/local
Image tags
Wodby images that package upstream software use [VERSION]-r[N] tags, for example
wodby/mariadb:11.4-r0. 11.4 selects the MariaDB version line and r0 identifies
the Wodby image revision. Revisions include application updates and image changes;
review the image release notes before upgrading because the revision number does
not indicate compatibility.
Major/minor tags share a revision counter per image repository. Full-version tags,
such as 11.4.2-r0, start at r0 again for each exact upstream version. Matching
Git tags identify the source commit for each published revision. Development
variants retain their qualifier, for example 8.5-dev-r0.
Use the versioned image tags supplied in .env instead of floating tags such as
latest. Previously published tags remain available. Wodby software such as Backup
uses semantic product versions, and third-party images follow their own tag formats.
See the image revision policy
for details.
Maintenance
We regularly update images used in this stack and release them together, see releases page for full changelog and update instructions. Most of routine updates for images and this project performed by the bot via scripts located at wodby/images.
Deploy to production
Docker4PHP is for local development with Docker Compose. To run the same stack in production, use the PHP stack on Wodby.
It runs your PHP application on Kubernetes with the same wodby/php image you use locally, behind Nginx, with MariaDB, PostgreSQL, and Valkey as optional services. You choose where it runs: Wodby Cloud, a Kubernetes cluster in your own cloud account, or a single server of your own.
- Start from the Composer boilerplate, or connect your own repository
- Database and mail settings reach PHP through the services you link
- Memory limit, execution time, and PHP-FPM process settings are variables on the PHP service
- CI/CD is built in
- A free plan is available, including on a server of your own
Read the PHP stack guide, or see PHP hosting on Wodby and pricing.
Other Docker4x projects
License
This project is licensed under the MIT open source license.
Explore related projects
Loading…