All Projects → touch4it → docker-php7

touch4it / docker-php7

Licence: MIT license
Docker image tailed to run PHP application

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-php7

distros.bid
A saas to create drupal websites in seconds using docker containers.
Stars: ✭ 16 (-11.11%)
Mutual labels:  drupal, docker-images
yii2-bankcard-info
银行卡卡号分析(Yii2扩展)
Stars: ✭ 15 (-16.67%)
Mutual labels:  yii2
ar-search
Provides unified search model for Yii ActiveRecord
Stars: ✭ 31 (+72.22%)
Mutual labels:  yii2
docker-image-size-limit
🐳 Keep an eye on your docker image size and prevent it from growing too big
Stars: ✭ 102 (+466.67%)
Mutual labels:  docker-images
funboot
基于Yii2的Saas快速开发平台,内置多商户并内置商城、论坛、CMS等子系统。Yii2/Mysql/Mongodb/Redis/Elasticsearch/SnowFlake雪花算法ID生成 RBAC动态权限 数据权限 定时任务 日志/消息 代码生成Gii升级
Stars: ✭ 273 (+1416.67%)
Mutual labels:  yii2
yii2-realtime-chat-example
Yii2 simple realtime chat with websocket.io
Stars: ✭ 17 (-5.56%)
Mutual labels:  yii2
contribkanban.com
ContribKanban.com - turning Drupal.org issue queues into kanban boards to better Drupalkind
Stars: ✭ 55 (+205.56%)
Mutual labels:  drupal
drupal-composer-init
Initialise a Drupal composer setup
Stars: ✭ 43 (+138.89%)
Mutual labels:  drupal
yii2-jwt-tools
An easy way to configure JWT authentication and validation on Yii Framework 2 Projects
Stars: ✭ 22 (+22.22%)
Mutual labels:  yii2
DrupalDriver
A collection of drivers for controlling Drupal.
Stars: ✭ 64 (+255.56%)
Mutual labels:  drupal
drupal-circleci-behat
Test and deploy Drupal 9 with CircleCI 2.0 and Behat 3
Stars: ✭ 17 (-5.56%)
Mutual labels:  drupal
behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (+0%)
Mutual labels:  yii2
luya-module-cms
The LUYA CMS module provides a full functional CMS for adding contents based on blocks.
Stars: ✭ 28 (+55.56%)
Mutual labels:  yii2
yii2-cashier
Yii2 Cashier provides an interface to Stripe's subscription billing services.
Stars: ✭ 43 (+138.89%)
Mutual labels:  yii2
yii2-querybuilder
Extension for Yii2 Framework to work with jQuery QueryBuilder
Stars: ✭ 41 (+127.78%)
Mutual labels:  yii2
yii2-at-least-validator
Makes one or more attributes mandatory inside a set of attributes.
Stars: ✭ 28 (+55.56%)
Mutual labels:  yii2
yii2-flatpickr
Datetime picker widget for Yii2 framework
Stars: ✭ 17 (-5.56%)
Mutual labels:  yii2
drupal-container
Drupal container for running Drupal sites with Docker, built with Ansible.
Stars: ✭ 37 (+105.56%)
Mutual labels:  drupal
yii2-rest-api
Yii 2 REST API Project Template
Stars: ✭ 36 (+100%)
Mutual labels:  yii2
composer-tutorial
A walk through of various Composer tasks
Stars: ✭ 40 (+122.22%)
Mutual labels:  drupal

docker-php7

Docker image tailored to run PHP application. Check https://hub.docker.com/r/touch4it/docker-php7

What's here?

This repository is a source code for following Docker images that allow relatively easily work with PHP frameworks. Included images:

PHP 7

  • Debian + Apache + mod_php
    • touch4it/docker-php7:php7.3-apache
    • touch4it/docker-php7:php7.4-apache
  • Debian + Apache + PHP-FPM
    • touch4it/docker-php7:php7.3-fpm-apache
    • touch4it/docker-php7:php7.4-fpm-apache
  • Alpine + Nginx + PHP-FPM
    • touch4it/docker-php7:php7.3-fpm-nginx
    • touch4it/docker-php7:php7.3-fpm-nginx-dev
    • touch4it/docker-php7:php7.4-fpm-nginx
    • touch4it/docker-php7:php7.4-fpm-nginx-dev

PHP 8

  • Debian + Apache + mod_php
    • touch4it/php8:php8.0-apache
    • touch4it/php8:php8.1-apache
  • Debian + Apache + PHP-FPM
    • touch4it/php8:php8.0-fpm-apache
    • touch4it/php8:php8.1-fpm-apache
  • Alpine + Nginx + PHP-FPM
    • touch4it/php8:latest
    • touch4it/php8:php8.0-fpm-nginx
    • touch4it/php8:php8.0-fpm-nginx-dev
    • touch4it/php8:php8.1-fpm-nginx
    • touch4it/php8:php8.1-fpm-nginx-dev

Frameworks

  • Symfony
    • touch4it/php7-apache-symfony:php7.3
    • touch4it/php7-apache-symfony:php7.4
    • touch4it/php-nginx-symfony:php7.3-fpm-nginx
    • touch4it/php-nginx-symfony:php7.3-fpm-nginx-dev
    • touch4it/php-nginx-symfony:latest, php7.4-fpm-nginx
    • touch4it/php-nginx-symfony:php7.4-fpm-nginx-dev
  • Drupal
    • touch4it/drupal-php-fpm-nginx:latest, 9.4.8, 9.4
    • touch4it/drupal-php-fpm-nginx:9.3.22, 9.3
  • Drupal console
    • touch4it/drupal-php-fpm-nginx:console
  • Symfony
    • touch4it/php7-apache-symfony:php7.3
    • touch4it/php7-apache-symfony:php7.4
    • touch4it/php-nginx-symfony:php7.3-fpm-nginx
    • touch4it/php-nginx-symfony:php7.3-fpm-nginx-dev
    • touch4it/php-nginx-symfony:latest, php7.4-fpm-nginx
    • touch4it/php-nginx-symfony:php7.4-fpm-nginx-dev

Usage

Development env with docker-compose.yml

You can you this docker-compose.yml file to develop:

www:
  image: touch4it/docker-php7:latest
  volumes:
    - ".:/var/www/html"
  ports:
    - "80"

Of course, you are free to add linked containers like database, caching etc.

Use docker-compose up command to start your development environment.

Build production image

You can build production ready image with Dockerfile like this:

FROM touch4it/docker-php7:latest
ADD . /var/www/html

Environment variables

This image uses several environment variables which are easy to miss. While none of the variables are required, they may significantly aid you in using the image.

ADMIN_EMAIL

The ServerAdmin sets the contact address that the server includes in any error messages it returns to the client. If the httpd doesn't recognize the supplied argument as an URL, it assumes, that it's an email-address and prepends it with mailto: in hyperlink targets. However, it's recommended to actually use an email address, since there are a lot of CGI scripts that make that assumption. If you want to use an URL, it should point to another server under your control. Otherwise users may not be able to contact you in case of errors.

Default value: webmaster@localhost

For Apache-based images

PHP_TIME_ZONE

Defines the default timezone used by the date functions

http://php.net/date.timezone

Default value: Europe/London

PHP_MEMORY_LIMIT

Maximum amount of memory a script may consume

http://php.net/memory-limit

Default value: 256M

PHP_UPLOAD_MAX_FILESIZE

Maximum allowed size for uploaded files.

http://php.net/upload-max-filesize

Default value: 32M

PHP_POST_MAX_SIZE

Maximum size of POST data that PHP will accept. Its value may be 0 to disable the limit. It is ignored if POST data reading is disabled through enable_post_data_reading.

http://php.net/post-max-size

Default value: 32M

FAQ

What extensions are enabled by default?

Apache

  • mod_rewrite

For Apache-based images

  • mod_http2

for Apache 2.4.26+ based images

PHP

  • bcmath
  • exif
  • gd
  • gettext
  • intl
  • mbstring
  • opcache
  • pgsql
  • pdo
  • pdo_mysql
  • pdo_pgsql
  • zip

How do I install additional php extensions?

This work is based on official Docker Hub php images. You can use docker-php-ext-install to add new extensions. More information can be found https://hub.docker.com/_/php/

How do I change default PHP variables?

You can add an ini file into $PHP_INI_DIR/conf.d directory

Why is my .htaccess file not working?

Check if you have not selected Nginx-based image

What Apache version is on Apache-based images?

Same as in similar official PHP image on Docker Hub

What Nginx version is on Nginx-based images?

1.21

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].