Docker + Magento 2: Virtual Machine Tutorial

  Рет қаралды 23,021

MageModule

MageModule

Күн бұрын

Пікірлер: 40
@CosyStudios
@CosyStudios 3 жыл бұрын
About time someone laid out a bare bones Docker/Magento scenario and alleviated my concerns of persistent storage. I'm all game for Docker becoming part of my flow but there's so many concerns to alleviate first.. I don't even want to start until I know there's going to be a clear workflow long term for quick dev,deployment & continued maintenance of my site.
@chandanbhanopa
@chandanbhanopa 2 жыл бұрын
Hello, That is very nice video that you have created I have some queries 1. How to modify the files? 2. How to add new module? 3. How to access the Mysql?
@freshlybakedkamote8047
@freshlybakedkamote8047 5 жыл бұрын
Hi how can I add an already existing Magento 2 into this? I have my Magento 2 project setup in Vagrant but there are plenty of drawback when using vagrant and I know docker is way better than vagrant. So how do I migrate it correctly? Hope to get a reply from you. Thanks
@meghvankawala3563
@meghvankawala3563 4 жыл бұрын
Thank you so much for sharing useful information. I have one question here. How can we add the existing database?
@meghvankawala3563
@meghvankawala3563 4 жыл бұрын
Your steps are running great on Magento 2.3.3 with the existing database using "webdevops/php-apache-dev:ubuntu-18.04" image on windows.
@mateuspedroso6547
@mateuspedroso6547 4 жыл бұрын
This was so much useful. Thank you!!!
@lofty-cove
@lofty-cove 2 жыл бұрын
I just finished installing but when I access the local server it gives me a 503. I can access phpmyadmin with no problems. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. I installed with 7.4 changed ports to 8081 aside from that everything is the same with the guide. what could my problem be?
@matthewvolk
@matthewvolk 5 жыл бұрын
Great tutorial! Can I ask what the top level "volumes: db-data: external: false" entry in your docker-compose.yml was for? I'm new to Docker, but as far as I know as long as you add the volume "volume: db-data:/var/lib/mysql" in the mysql service, shouldn't the "db-data/" directory be created in your working directory regardless? I'm just confused because I want to change the "mysql: volumes:" entry from "volumes: - db-data:/var/lib/mysql" to "volumes: - ./.docker/data:/var/lib/mysql" and I'm wondering if this is going to impact the top level "volumes" entry in the docker-compose.yml file. Also, does webdevops/php-apache-dev:7.2 work with this project so I can use Magento 2.3.x?
@davidvelasquez6427
@davidvelasquez6427 6 жыл бұрын
Thanks for sharing this useful information
@CalevChandraKavit
@CalevChandraKavit 4 жыл бұрын
I am trying to install Magento 2.4 with all the same configs except upgraded to webdevops/php-apache-dev:7.4 from ubuntu-16.04 as 2.4 requires recent version of PHP. And using the same MariaDb image from the tutorial. I am able to access phpmyadmin in browser. However upon running set up, I get this: "Current version of RDBMS is not supported. Used Version: 10.5.4-MariaDB-1:1 0.5.4+maria~focal. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10 .4) " And when I explicitly state version for mariaDb to 10.2 or 10.4 in docker-compose.yml, I am not able to access phpmyadmin after build (docker-compose up -d --build ) succeeds. Anything I maybe missing?
@gnaniboy
@gnaniboy 5 жыл бұрын
Is there a way to connect to the magento files (do changes) by using an SFTP client that would connect via SSH?
@phuongle2188
@phuongle2188 5 жыл бұрын
can i ask you how is the sync with the vendor folder ? As this folder is quite huge... did you encountered some issue with the sync... ?
@davidlatty
@davidlatty 4 жыл бұрын
Why do i get this error ERROR: Service 'm23' failed to build: The command '/bin/sh -c composer create-project --repository=repo.magento.com/ magento/project-community-edition /var/www/html/magento2ce/' returned a non-zero code: 255
@rosiibarra390
@rosiibarra390 Жыл бұрын
Hola, trato de entrar pero tu pagina no tiene acceso
@whatsupbudbud
@whatsupbudbud 5 жыл бұрын
magento/product-community-edition 2.2.3 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (7.3.6) does not satisfy that requirement. How to get it to launch with a different php version (from a docker image?)?
@rfloka
@rfloka 4 жыл бұрын
Change the web image (instead of ubuntu-16.04)
@getsykot
@getsykot 5 жыл бұрын
Doesn't work for latest version of Magento (Magento v2.3.0 supports PHP v7.1.3+). webdevops/php-apache-dev:ubuntu-16.04 comes with PHP v7.0. Any help?
@MageModule
@MageModule 5 жыл бұрын
Hi Nasim, you can change out the name of the web image with webdevops/php-apache-dev:7.1 or webdevops/php-apache-dev:7.2.
@MageModule
@MageModule 5 жыл бұрын
You should be aware that you may have difficult installing 2.3 from composer. This is nothing to do with anything in the tut. There is a core bug that has been an issue with 2.3.0 enterprise. Not sure about community though.
@atty31
@atty31 5 жыл бұрын
After executing the last command to install the project, I am stuck with this error: SQLSTATE[HY000] [2006] MySQL server has gone away In InstallCommand.php line 264: Parameter validation failed Any idea how to fix this ? Thnx
@MageModule
@MageModule 5 жыл бұрын
What version of Magento and what version of PHP are you using?
@atty31
@atty31 5 жыл бұрын
@@MageModule hey the latest one 2.3.2 and 7.2 the php version, basically i changed the ubuntu version from 16.04 to 18.04. But in both cases, i still get that error. Also if i access phpmyadmin , it s saying that i cannot access and the same message with MySQL server has gone away. And i followed exactly that article :) but something is still missing :) Thnx
@MageModule
@MageModule 5 жыл бұрын
​@@atty31 It sounds like you may not have enough memory or something else is killing mysql.
@karstendallsrensen235
@karstendallsrensen235 3 жыл бұрын
when i try to run php bin/magento sampledata:deploy I get this error: Could not open input file: bin/magento i Replace /path/to/magento on line 17 with the absolute path to the Magento files I downloaded like this: F:\magento2\project-community-edition/app:cached
@MageModule
@MageModule 3 жыл бұрын
Hi Karsten. If the bin/magento file doesn't exist, it sounds like you may have forgotten to run composer create project or one of the other composer commands. Try running "composer install" from the root of the magento files.
@karstendallsrensen235
@karstendallsrensen235 3 жыл бұрын
Thanks i Will try that 😊👍
@karstendallsrensen235
@karstendallsrensen235 3 жыл бұрын
now i got this: Your Magento authentication keys are invalid. Please double-check your keys in your Marketplace account. For instructions, visit devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html
@MageModule
@MageModule 3 жыл бұрын
@@karstendallsrensen235 sounds like your Magento keys are not installed. Try this composer config --global http-basic.repo.magento.com.username public_key composer config --global http-basic.repo.magento.com.password private_key Replace public_key and private_key with your actual keys
@karstendallsrensen235
@karstendallsrensen235 3 жыл бұрын
@@MageModule Thanks 👍😊
@adisuns
@adisuns 5 жыл бұрын
do we need to install php to run composer? php 7.1.x?
@mateuspedroso6547
@mateuspedroso6547 4 жыл бұрын
I just change the image of docker-compose.yml. Put "image: webdevops/php-apache-dev:7.1". Works for me. Works with Magento 2.3.1, that I use in my store.
@IsaacPrice
@IsaacPrice 5 жыл бұрын
will this work with magento 1.9.x?
@MageModule
@MageModule 5 жыл бұрын
I am sorry but this is only for M2
@faranume1147
@faranume1147 3 жыл бұрын
this will be so much better if every command was runnable on windows too
@adisuns
@adisuns 5 жыл бұрын
I followed the steps but my localhost is not getting connected. docker setup is perfect as per steps. Also did host file entry. but still cant hit to localhost. below is the yml file on windows. services: web: image: webdevops/php-nginx:7.2 container_name: web restart: always #user: application environment: - WEB_ALIAS_DOMAIN=local.domain.com - WEB_DOCUMENT_ROOT=/app/pub - PHP_DATE_TIMEZONE=EST - PHP_DISPLAY_ERRORS=1 - PHP_MEMORY_LIMIT=2048M - PHP_MAX_EXECUTION_TIME=300 - PHP_POST_MAX_SIZE=500M - PHP_UPLOAD_MAX_FILESIZE=1024M volumes: - ./:/app:cached #ports: # - "80:80" # - "443:443" # - "32823:22" links: - mysql mysql: image: mariadb:10 container_name: mysql restart: always environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=magento volumes: - db-data:/var/lib/mysql phpmyadmin: container_name: phpmyadmin restart: always image: phpmyadmin/phpmyadmin:latest environment: - MYSQL_ROOT_PASSWORD=root - PMA_USER=root - PMA_PASSWORD=root links: - mysql:db depends_on: - mysql volumes: db-data: external: false
@MageModule
@MageModule 5 жыл бұрын
Thanks for checking in with us. This tut doesn't really support windows, mainly because I am not that well-versed with windows. However, you have commented out the ports so I am not certain how you plan to access the site from the browser. When you have no ports specified, docker will randomly assign port numbers. You can remove port 80 but leave 443 intact and try to access the site via local.domain.com
@jdotsystem
@jdotsystem 4 жыл бұрын
Update the above and this video after upgraded tag and release or append the following link dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache.html
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 239 М.
Docker + Magento 2 + Redis
6:25
MageModule
Рет қаралды 1,8 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3 МЛН
Migrate Magento to another server - Magento 2 Tutorial
26:42
Digital Startup
Рет қаралды 12 М.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 382 М.
Dockerize your existing Magento2 project
11:54
MOWA Digital
Рет қаралды 1,8 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 690 М.
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
PhpStorm & Xdebug: Common Use Examples
11:35
MageModule
Рет қаралды 536
Magento 2 - module development for beginners (2021)
20:38
Another Magento Dev
Рет қаралды 12 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4 МЛН