Sign inSign up

pnlinh/magento

By pnlinh

•Updated about 1 year ago

Simple docker image for Magento development

Image
0

936

pnlinh/magento repository overview

⁠Docker PHP-FPM & Nginx base on Alpine Linux

Simple docker image for Magento development

⁠How to use
  • Build image
./build php7.2 # Build image with php 7.4
./build php7.4 # Build image with php 7.4
./build php8.0 # Build image with php 8.0
./build php8.1 # Build image with php 8.1
  • Mount your code to be served with container
docker run --name=app -v /path/to/project:/var/www/html -p 80:80 pnlinh/magento:php7.4
docker run --name=app -v /path/to/project:/var/www/html -p 80:80 pnlinh/magento:php8.0
docker run --name=app -v /path/to/project:/var/www/html -p 80:80 pnlinh/magento:php8.1
  • With docker-compose
version: '3.4'

services:
    app:
        image: pnlinh/magento:php7.4
        hostname: magento-app
        container_name: magento-app
        ports:
            - "80:80"
        volumes:
            - .:/var/www/html
        networks:
            - localnet
  • See PHP version info
docker run --name=app --rm -p 80:80 pnlinh/magento:php7.4
docker run --name=app --rm -p 80:80 pnlinh/magento:php8.0
docker run --name=app --rm -p 80:80 pnlinh/magento:php8.1

image

⁠References

Tag summary

Content type

Image

Digest

sha256:eac98f6e1…

Size

23.3 MB

Last updated

about 1 year ago

docker pull pnlinh/magento:php8.2