Coder Social home page Coder Social logo

guodont / magento2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clean-docker/magento2

0.0 2.0 0.0 25 KB

Docker Image to Magento 2 local development in Mac, Linux and Windows

Home Page: https://hub.docker.com/r/rafaelcgstz/magento2/

Shell 98.75% PHP 1.25%

magento2's Introduction

Magento 2

Magento 2 Docker to Development

Apache 2.4 + PHP 7.0.17 + OPCache + MariaDB

Magerun 2 + DevAlias + XDebug

Build Status Build Status

This cluster ready docker-compose infrastructure.

Copy and run

git clone https://github.com/clean-docker/Magento2.git m2-docker &&
cd m2-docker &&
docker-compose up -d ;
docker ps

Projects folder

There is a folder in this project calling ./magento2, this folder is the folder /var/www/html/ inside your container, is the folder that you will work on.

Access the container Docker

To access in you browser you can use http://localhost ( I recommend change your /etc/hosts ).

docker exec -ti m2docker_apache_1 bash

Install Magento 2

You can access in this URL http://localhost/magento2/ after installed with this commands below.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2
cd magento 2
find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
chmod u+x bin/magento

Access the MySQL

In your terminal out of the container run this command.

mysql -u root -proot -h 0.0.0.0 -P 3300

To know what is the IP to use in the Magento 2 installation (Database Server Host), you can use this command out the container.

docker inspect m2docker_db_1 | grep IPAddress

License

MIT © 2017 Rafael Corrêa Gomes and contributors.

magento2's People

Contributors

rafaelstz avatar ndlinh avatar rossmc avatar

Watchers

James Cloos avatar guodont avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.