Giter Site home page Giter Site logo

magento2-docker's Introduction

Magento 2 Docker-compose project

This docker-compose project use few containers:

  • nginx
  • php7.3-fpm
  • mariadb
  • mailhog

Docker-compose will clone magento repo, run composer install and magento install All those could be changed in .env file

Domain name http://mage.localhost SSH root pass: 123123q You may want to configure your code changes/sync using ssh connection

build

docker-compose build

run

docker-compose up

connect using ssh

ssh -p 2222 root@localhost

clean old ssh hash

ssh-keygen -R [localhost]:2222

clean

docker-compose down

hard clean

docker-compose down --rmi all -v

super hard clean

docker rm -f $(docker ps -q -a)

docker rmi -f $(docker images -q)

magento2-docker's People

Contributors

dyushkin avatar krasnuydyx avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-docker's Issues

Moving environment variables from docker files to environment

For now environment variables, such as:

  • MySQL settings
  • path to Magento2 directory
  • Magento2 installation options
  • Magento 2 version
  • etc.

are hardcoded into files with docker instructions. We should create separate environment file(s), .env for example, to keep environment variables in one place.

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.