Skip to content

A simple docker installation that allows you to host magento 2 applications quickly and easily.

Notifications You must be signed in to change notification settings

karlsminton/mage2docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mage2Docker

A basic magento2-compatible docker instance based on docker-compose.

Getting Started

Make sure you've installed docker (https://docs.docker.com/install/) and docker-compose (https://docs.docker.com/compose/install/) for your platform.

Clone this repo into the directory you wish to host the site from. In my case I've created a ~/Containers/ProjectName directory, and cloned into that. When you're set up enter this directory and then run docker-compose up which will install all relevant images.

If this process suceeded you should be able to add 127.0.0.1 phpdocker.local to /etc/hosts. If you wish to use a different hostname change the value in ./default.conf before running docker-compose up and add this value instead to your hostfile.

In order to use the database you may also want to add 127.0.0.1 db to your hostfile as well. db is referenced in your docker-compose.yaml and by adding this you can use that as your database host in app/etc/env.php

About

A simple docker installation that allows you to host magento 2 applications quickly and easily.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published