Skip to content

victortodoran/docker-magento

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

Under no circumstance do NOT use this in production. This offers a quick way to start development with Magento2 locally.

Recognition

Shout-out to @lillik and @marius-grad who laid the first bricks of this repo.

Requirements

This project requires Docker and Docker Compose installed on the machine. Please follow the Docker installation steps from https://docs.docker.com/engine/installation/ and docker compose installation steps from https://docs.docker.com/compose/install/.

Installation

Please follow the next steps:

  1. Download or clone this project in the directory you want to have the project installed.

  2. Create a new file auth.json in directory .composer and add your repo.magento.com credentials

         "username": "YOUR_USERNAME_USED_ON_REPO_MAGENTO",
         "password": "YOUR_PASSWORD_USED_ON_REPO_MAGENTO"
    
  3. Open a terminal that allows you to run Docker Compose CLI application.

  4. Change directory in terminal to the directory where the step 1 was performed.

  5. Build the docker images with next command:

docker-compose up -d --build app

  1. Download and install Magento CE 2 with next command

docker-compose run setup

  1. Add the next text in hosts file of your OS system:

172.20.0.3 sandbox.local

  1. Open the browser and type the next link: http://sandbox.local/

Network IPs

Container IP
M2 NGINX 172.20.0.3
M2 PHP 172.20.0.4
M2 MySQl 172.20.0.5
M2 Redis 172.20.0.6
M2 Mailcatcher 172.20.0.8
M2 Elaticsearch01 172.20.0.9

Enter magento(PHP) container to run commands

docker-compose exec -u www-data -it sandbox-php bash

Configure Redis for FPC and Session

@see env.php.dist

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published