Coder Social home page Coder Social logo

200263830 / docker-magento2-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from echo-magento/docker-magento2

0.0 2.0 0.0 68 KB

Magento 2.4, Apache 2.4, PHP 7.4, MariaDB 10.4.16, Elasticsearch 7.6.0, Varnish 6.4.0

License: MIT License

Shell 17.31% PHP 22.97% Dockerfile 39.13% VCL 20.60%

docker-magento2-1's Introduction

Magento Commerce

Magento 2 Docker to Development

Features

  • Magento 2.4
  • Apache
  • PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4
  • Xdebug 2.9.8
  • MariaDB 10.4.13
  • Elasticsearch 7.6
  • Varnish 6.4
  • Redis
  • MailHog
  • n98-magerun
PHP Version Composer hirak/prestissimo
7.1 1.10.17 Yes
7.2 1.10.17 Yes
7.3 1.10.17 Yes
7.4 2.* No

Requirements

Linux:

Install Docker and Docker-compose.

Before start

Note that for Elasticsearch you need at least 262144 memory.

To check:

more /proc/sys/vm/max_map_count

The vm.max_map_count setting should be set permanently in /etc/sysctl.conf:

vm.max_map_count=262144

After set run:

sudo sysctl -p

How to use

Run all containers with command

bin/start

To install the latest version of Magento 2:

bin/shell
rm index.php
install-magento2

If you want to use Varnish use docker-compose.varnish.yml

If you don't want to use Varnish and Elasticsearch use docker-compose.light.yml

Panels

Web server: http://localhost/

Local emails: http://localhost:8025

Features commands

Commands Description Options & Examples
bin/init If you didn't use the CURL setup command above, please use this command changing the name of the project. ./init MYMAGENTO2
bin/start If you continuing not using the CURL you can start your container manually
bin/stop Stop your project containers
bin/kill Stops containers and removes containers, networks, volumes, and images created to the specific project
bin/shell Access your container ./shell root
bin/magento Use the power of the Magento CLI
bin/magento-basic All basic Magento CLI commands (setup:upgrade, setup:di:compile, setup:static-content:deploy -f, cache:clean, cache:flush)
bin/n98 Use the Magerun commands as you want
bin/grunt-init Prepare to use Grunt
bin/grunt Use Grunt specifically in your theme or completely, it'll do the deploy and the watcher. ./grunt luma
bin/xdebug Enable / Disable the XDebug
bin/composer Use Composer commands ./composer update

docker-magento2-1's People

Contributors

adrifkat avatar echo-magento avatar

Watchers

James Cloos avatar Bhaumik Patel 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.