Giter Site home page Giter Site logo

magento2dockerdevenv's Introduction

Magento 2 CE/EE DOCKER ENVIRONMENT

suggestion :

1. China registry

 "https://registry.docker-cn.com",
 "https://k6djaujw.mirror.aliyuncs.com"

2. install git and docker-compose

sudo apt install git
sudo apt install docker-compose # if you install docker-desktop, it will be added too. not need to install independently.

3. annotation the unused container in docker-compose.dev.yml

edit docker-compose.dev.yml, it will be copied from docker-compose.dev.yml.sample at the first running. # these configure codes

4. Start Docker Compose

# 第一次执行前先加权限:
chmod +x ./stop ./start ./restart ./remove ./go ./wingo ./upgrade ./docker-compose
chmod 777 -R .docker/php73-fpm/log .docker/php-fpm/log .docker/php81-fpm/log

./start

5. Restart

./restart

6. Stop

./stop

7. Remove all

./remove

8. Upgrade

./upgrade

9. log in to container

# mac&linux
./go [sshd|php73|php7.3|php74|php7.4|php81|php8.1|nginx|mysql57|mysql5.7|mysql80|mysql8.0|mariadb|redis|ubuntu]
# windows
./wingo [sshd|php73|php7.3|php74|php7.4|php81|php8.1|nginx|mysql57|mysql5.7|mysql80|mysql8.0|mariadb|redis|ubuntu]

10. sshd

# sshd configure, for phpStorm auto deployment when developing
ssh -p 2222 [email protected] ##passwd:qwer
cd /data/www

# tools in sshd container : 
su root
# password is : admin
git --version
#git version 2.34.2
composer -v
#Composer version 2.3.5
node -v
#v16.14.2
npm -v
#8.1.3
cnpm -v
#[email protected] (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
apidoc -v
#apidoc version: 0.51.1
ifconfig -a
# net-tools
ipaddr
# net-tools
mysql -h mysql -u fusc -p
# mysql-client
redis-cli -h redis
# redis-cli, redis pwd is redis
drill baidu.com
# drill

11. PHP7.3.27

http://php.demo/php73.php

12. PHP7.4.28

http://php.demo/php74.php

13. PHP8.1.17

http://php.demo/php81.php

14. ADMINER

http://localhost:8899/ #root user : root ; password : fusc
#visit mysql8.0, sever name : mysql
#visit mysql5.7, sever name : mysql57

15. ES HEAD

http://localhost:9100/ # check ES data

16. 免密登录sftp

in windows, need to go container(./wingo ubuntu) and sudo chmod 755 /home/www-data/.ssh and sudo chmod 644 /home/www-data/.ssh/authorized_keys and sudo chown -R www-data:www-data authorized_keys at the first time.
ssh-copy-id -i ~/.ssh/id_rsa -p 3333 [email protected] # ubuntu container

17. mq management

http://192.168.236.170:15672/
fusc/fusc

magento2dockerdevenv's People

Contributors

ulooocom avatar fushucheng 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.