https://github.com/cyber-duck/php-fpm-magento2
Docker image for a php-fpm container crafted to run Magento 2 based applications.
https://github.com/cyber-duck/php-fpm-magento2
docker docker-image magento magento2 php
Last synced: about 2 months ago
JSON representation
Docker image for a php-fpm container crafted to run Magento 2 based applications.
- Host: GitHub
- URL: https://github.com/cyber-duck/php-fpm-magento2
- Owner: Cyber-Duck
- License: mit
- Created: 2018-02-12T15:51:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T12:24:23.000Z (almost 8 years ago)
- Last Synced: 2025-01-04T21:27:23.122Z (over 1 year ago)
- Topics: docker, docker-image, magento, magento2, php
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP-FPM Docker image for Laravel
Docker image for a php-fpm container crafted to run Magento 2 based applications.
## Specifications:
Based on the **official Magento 2 requirements** [here](http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html) and [there](http://devdocs.magento.com/guides/v2.2/install-gde/prereq/php-ubuntu.html).
* PHP 7.1
* BC-Math PHP Extension
* Ctype PHP Extension
* CURL PHP Extension
* DOM PHP Extension
* GD PHP Extension
* Intl PHP Extension
* Mbstring PHP Extension
* Mcrypt PHP Extension
* Hash PHP Extension
* OpenSSL PHP Extension
* PDO/MySQL PHP Extension
* SimpleXML PHP Extension
* SOAP PHP Extension
* SPL PHP Extension
* LibXML PHP Extension
* XSL PHP Extension
* ZIP PHP Extension
* JSON PHP Extension
* WebKitHTMLtoPDF (wkhtmltopdf) Support
* Iconv PHP Extension
* PHP OPcache
* Latest Composer
* NodeJS 8 + NPM (for standard Magento 2 Front-end Build System using Grunt)
* PHP ini values for Magento 2 (see [`magento2.ini`](https://github.com/Cyber-Duck/php-fpm-laravel/blob/7.1/magento2.ini))
* xDebug (PHPStorm friendly, see [`xdebug.ini`](https://github.com/Cyber-Duck/php-fpm-laravel/blob/7.1/xdebug.ini))
* `magento` alias created to run unit tests `bin/magento` with `docker-compose exec [service_name] magento ...`
* `t` alias created to run unit tests `vendor/bin/phpunit` with `docker-compose exec [service_name] t ...`
More information: [`Dockerfile`](https://github.com/Cyber-Duck/php-fpm-laravel/blob/7.1/Dockerfile)
⚠️ Magento 2 Cron jobs are not installed by default, see [the official documentation](http://devdocs.magento.com/guides/v2.2/comp-mgr/prereq/prereq_cron.html).
## Tags available:
When calling the image you want to use within your `docker-compose.yml` file,
you can specify a tag for the image. Tags are used for various versions of a
given Docker image.
* [`7.1`](https://github.com/Cyber-Duck/php-fpm-magento2/tree/7.1)
**Note:** the `master` branch is not used for generating images, used for documentation instead. Only tags/branches are.
## docker-compose usage:
```yml
version: '2'
services:
php-fpm:
image: cyberduck/php-fpm-magento2(:)
environment:
XDEBUG: "true" # optional: "false" by default
volumes:
- ./:/var/www/
- ~/.ssh:/root/.ssh # can be useful for composer if you use private CVS
networks:
- my_net #if you're using networks between containers
```
**Note:** If `XDEBUG` is set to `true`, you'll need to stop/start the service again.