Sign inSign up

dockette/web

Sponsored OSS

By dockette

•Updated 7 minutes ago

🐳 All-in-one web container — Nginx, PHP-FPM, Supervisor, Cron

Image
Security
Languages & frameworks
Web servers
6

50K+

dockette/web repository overview

⁠Dockette / Web

🐳 Ready-to-use docker images for websites (nginx, PHP 7.0/7.1/7.2/7.3/7.4/8.0/8.1/8.2/8.3/8.4/8.5 + FPM, supervisor, cron).

šŸ•¹ f3l1x.io⁠ | šŸ’» f3l1x⁠ | 🐦 @xf3l1x⁠

⁠Overview

This project provides ready-to-use Docker images for web development and deployment. These images are built with a focus on PHP applications, offering a complete environment with Nginx, PHP-FPM, Supervisor, and Cron capabilities.

⁠Key Features
  • Multiple PHP Versions: Support for PHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, and 8.5
  • Nginx Web Server: Pre-configured with sensible defaults for PHP applications
  • PHP-FPM: Optimized for performance with common extensions installed
  • Supervisor: Process control system to manage services
  • Cron Support: Schedule and run periodic tasks
  • Debian-based: All images are built on Debian Bookworm for stability
  • Customizable: Easy configuration through volume mounts
  • Production-Ready: Optimized for both development and production environments

⁠Usage

ImageDistroPHP
dockette/web:php-85Bookworm8.5
dockette/web:php-84Bookworm8.4
dockette/web:php-83Bookworm8.3
dockette/web:php-82Bookworm8.2
dockette/web:php-81Bookworm8.1
dockette/web:php-80Bookworm8.0
dockette/web:php-74Bookworm7.4
dockette/web:php-73Bookworm7.3
dockette/web:php-72Bookworm7.2
dockette/web:php-71Bookworm7.1
dockette/web:php-70Bookworm7.0

You can easily start your Docker container with following command.

docker run \
	-it \
	--rm \
	--name www \
	-p 80:80 \
	dockette/web:php-85
⁠Custom Nginx config

To customize Nginx config just bind new config to the path /etc/nginx/sites.d/site.conf, for example, in such way:

docker run \
	-it \
	--rm \
	--name www \
	-v my-lovely-nginx.conf:/etc/nginx/sites.d/site.conf \
	-p 80:80 \
	dockette/web:php-85
⁠Run cron tasks

You could also run cron tasks, just simply bind your crontab to /etc/cron.d/app, for example, in such way:

docker run \
	-it \
	--rm \
	--name www \
	-v my-crontab:/etc/cron.d/app \
	-p 80:80 \
	dockette/web:php-85

Please note, this crontab should has a little bit different format. There is also username, for example:

57 19 * * *   www-data    my_command

⁠Maintenance

See how to contribute⁠ to this package. Consider to support⁠ f3l1x. Thank you for using this package.

Tag summary

Content type

Image

Digest

sha256:e0476bf2d…

Size

153.8 MB

Last updated

7 minutes ago

docker pull dockette/web:php-73

This week's pulls

Pulls:

358

Sep 28 to Oct 4