Alpine PHP-FPM Magento 2 Community images
1.3K
Alpine based PHP-FPM Magento 2 Community image used by https://www.targetpractice.tech
Tags are available for most Magento 2 versions and new images will be generated automatically when a new Magento 2 version is released. Each Magento 2 version has a default image tag and a version that contains sample data for development/demo purposes.
PHP versions used are 7.0/7.1/7.2
The following docker-compose will set up a Magento 2.1.6 PHP container, a Mysql 5.7 container and a Nginx Container
version: '3.3'
volumes:
magento_files_volume:
services:
mysql:
image: mysql:5.7
restart: always
command: --max_allowed_packet=1073741824 --wait_timeout=28800
volumes:
- /var/lib/mysql
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: "password"
php:
image: targetpractice/magento2:project-community-edition.2.1.6
restart: always
volumes:
- magento_files_volume:/var/www/html
depends_on:
- mysql
web:
image: targetpractice/magento2-nginx
restart: always
volumes:
- magento_files_volume:/var/www/html
depends_on:
- php
version: '3.3'
networks:
traefik:
external: true
volumes:
magento_files_volume:
services:
mysql:
image: mysql:5.7
restart: always
command: --max_allowed_packet=1073741824 --wait_timeout=28800
volumes:
- /var/lib/mysql
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: "password"
networks:
- traefik
php:
image: targetpractice/magento2:project-community-edition.2.1.6
restart: always
volumes:
- magento_files_volume:/var/www/html
depends_on:
- mysql
networks:
- traefik
web:
image: targetpractice/magento2-nginx
hostname: magetest2.localhost
restart: always
volumes:
- magento_files_volume:/var/www/html
labels:
- "traefik.enable=true"
- "traefik.basic.port=80"
- "traefik.basic.protocol=http"
- "traefik.backend=magetest2"
- "traefik.frontend.rule=Host:magetest2.localhost"
- "traefik.docker.network=traefik"
depends_on:
- php
networks:
- traefik
Content type
Image
Digest
Size
603.3 MB
Last updated
over 7 years ago
docker pull targetpractice/magento2:project-community-edition.2.3.2.sample-data