Skip to content
This repository was archived by the owner on Sep 23, 2019. It is now read-only.
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages