Coder Social home page Coder Social logo

docker-magento2's Introduction

Magento2 in docker

Pre-configured environment based on docker to run Magento2 for development.

Tested with:

  • Docker version 1.9.1
  • docker-compose version 1.5.2

If you don't have docker installed on your system:

# install docker
curl -sSL https://get.docker.com/ | sh

# add user to docker group
sudo gpasswd -a ${USER} docker

# install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > docker-compose
sudo mv docker-compose /usr/local/bin
sudo chmod +x /usr/local/bin/docker-compose

Install

Clone Magento 2 into Source folder and call:

docker-compose up -d
make init

Open your browser at http://localhost:8123 and Magento2 should be up and running. Admin panel is at http://localhost:8123/admin and login credentials are admin:admin123.

Change your base url

Default installation uses localhost:8123, set another domain with e.g:

scripts/magento-set-base-url.sh mage2.dev.local

bin/magento tasks and mysql

Installation lives inside docker containers, access them e.g. to run bin/magento tasks or query the database use:

scripts/docker-ssh.sh

scripts/docker-mysql.sh

Install Sample Data

Just run this and you're done.

scripts/magenti-install-sample-data.sh

docker-magento2's People

Contributors

aweb3r avatar bka avatar

Watchers

 avatar  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.