Simple docker image for Magento development
936
Simple docker image for Magento development
./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
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
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
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

Content type
Image
Digest
sha256:eac98f6e1…
Size
23.3 MB
Last updated
about 1 year ago
docker pull pnlinh/magento:php8.2