webdevops/dockerfile

repository·master·Indexed 23 days ago

https://github.com/webdevops/dockerfile

A collection of highly configurable PHP Docker images featuring pre-installed modules, environment-based configuration, and support for running multiple services via supervisord. Includes specialized images for Nginx, Apache, bootstrap environments, and PHP static analysis tools (php-audit) across various distributions including Ubuntu, CentOS, and Debian.

Tokens
61.7K
Snippets
59
Records
468
Agent score
80%

What's inside webdevops-dockerfile

  1. Overview of webdevops/dockerfile PHP images

    master

    The webdevops/dockerfile project provides enhanced PHP Docker images that extend the official PHP-Images. Key features include:

    • Preinstalled Modules: Almost any PHP module is available pre-installed.
    • Environment-based Configuration: Configuration is driven by ENV variables.
    • Multi-service Support: Ability to run multiple services (such as php-fpm and nginx) simultaneously using supervisord.
  2. Use the Bootstrap container layout

    master

    The webdevops/bootstrap images provide a base container layout designed for automated builds. These images are based on official distribution containers and come pre-configured with:

    • All locales installed.
    • Ansible packages installed via pip.

    Use these images as a starting point for building custom environments where you need a consistent base with Ansible capabilities ready for configuration management.

  3. Explore available Docker image types

    master

    The webdevops/dockerfile repository provides a wide range of specialized Docker images for PHP and web infrastructure. You can choose from various base images and specialized configurations including:

    • Core Web Servers: Apache, Nginx, Varnish.
    • PHP Environments: PHP (base), PHP-Apache, PHP-Nginx, and development versions (e.g., php-dev, php-nginx-dev).
    • Infrastructure & Tools: Ansible, Certbot, Liquibase, Mail-sandbox, Postfix, SSH, Storage, and VSFTP.
    • Specialized Runtimes: HHVM (with Apache or Nginx support), Liquidsoap, Sphinx, and Typo3-Solr.
    • Base Layers: Base, Base-App, and Bootstrap images for building custom stacks.
  4. Use the webdevops/base-app Docker image

    master

    The base-app image is an extension of the base image that includes a comprehensive set of developer tools and all system locales. It is designed for applications that require specific system utilities or translation support via locales.

    Included Packages:

    • SSH: OpenSSH server (disabled by default) and client
    • Databases: MySQL client, sqlite
    • Networking/DNS: dnsmasq (disabled by default), postfix (disabled by default), net-tools, dns utils, wget, curl
    • File Management: zip, unzip, bzip2, rsync
    • Version Control: git
    • Editors: nano, vim
    • Utilities: sudo, moreutils

    Important Note on Locales: All locales are generated within this image to support application translations and date formatting. However, if you are using an Alpine-based version of this image, note that Alpine does not provide locales; you will need to implement an alternative method for locale support.