Git Product home page Git Product logo

magento2-docker's Introduction

magento-docker

How to use:

  1. copy config/swag/magento.subdomain.conf.dist to config/swag/magento.subdomain.conf
  2. edit line 7 of magento.subdomain.conf to your server FQDN: server_name server.domain.com;
  3. Copy .env.dist to .env
  4. Edit .env with relevent info
  5. docker-compose up -d swag
  6. docker exec -it console /first_run.sh
  7. copy magento files and db backup to data/magento/web/

ssh to console via: ssh [email protected] -p 222

Install Magento

  1. Copy existing Magento 2 files and db backup to /srv/magento/web
  • Setup db config: n98-magerun2 setup:config:set --db-host=mysql --db-name=MysqlDBName --db-user=mysqlDBUser --db-password=mysqlDBPassword
  • Import db run: n98-magerun2 db:import
  • Setup redis config: n98-magerun2 setup:config:set --cache-backend=redis --cache-backend-redis-server=redis-config-cache --cache-backend-redis-port=6381 --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-port=6379 --session-save=redis --session-save-redis-host=redis-session --session-save-redis-port=6380
  1. Or install new instance of Magento 2
bin/magento setup:install \
--base-url=https://server.example.com \
--db-host=mysql \
--db-name=mysqlDBName \
--db-user=mysqlUserName \
--db-password=mysqlDBPassword \
--admin-firstname=admin \
--admin-lastname=admin \
[email protected] \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1 \
--backend-frontname=m2admin \
--elasticsearch-host=elastic \
--session-save=redis \
--session-save-redis-host=redis \
--session-save-redis-db=1 \
--cache-backend=redis \
--cache-backend-redis-server=redis \
--cache-backend-redis-db=2 \
--page-cache=redis \
--page-cache-redis-server=redis \
--page-cache-redis-db=3

magento2-docker's People

Contributors

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