Skip to content

oshmyheliuk/magento-cloud-docker

 
 

Magento Commerce (Cloud) Docker

Docker Build Status Docker Pulls Docker Stars

A collection of build configurations to emulate Magento Cloud environment locally. Includes next services:

  • PHP CLI
  • PHP FPM
  • NGINX 1.9+
  • Redis
  • Varnish

Docker Hub

https://hub.docker.com/r/magento/

Credits

Inspired by meanbee/docker-magento2

Usage

Installation

  1. To be able to use this Docker configuration, you must have cloned Magento Cloud project
  2. Follow instruction on DevDocs

Generating new PHP configuration

To generate configuration for new version of PHP, run next command:

php ./bin/mcd generate:php <version>

Where:

  • version: Version of PHP to be generated

Executing commands

Connecting to CLI container

docker-compose run cli bash

Running Magento command

docker-compose run cli magento-command

Running ECE-Tools command

docker-compose run cli ece-command

Known limitations

Importing DB dump

To import DB dump, place it into the root of your project as dump.sql and extend db container configuration as follows:

  db:
    image: 'mariadb:10'
    ports:
      - 3306
    volumes_from:
      - dbdata
    volumes:
      - ./dump.sql:/docker-entrypoint-initdb.d/dump.sql

About

No description, website, or topics provided.

Resources

License

OSL-3.0 and 3 other licenses found

Licenses found

OSL-3.0
LICENSE.txt
Unknown
COPYING.txt
AFL-3.0
LICENSE_AFL.txt
MIT
LICENSE_MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 40.0%
  • Dockerfile 33.3%
  • VCL 15.8%
  • PHP 10.9%