fballiano / docker-magento2

Cluster ready Magento2 + Varnish 7 + PHP 8.1 + Redis 6.2 + Elasticsearch 7.17 + SSL
354 stars 164 forks source link

Best way to update? #47

Open NudeWeb opened 3 years ago

NudeWeb commented 3 years ago

Hi, I see you have updated to php7.4 for Magento 2.4 what is the best way to update the containers please?

fballiano commented 3 years ago

Hi :) I guess a simple docker-compose pull would do, but I'm not sure about what happens to the DB

NudeWeb commented 3 years ago

That's what I thought but after mounting the docker-magento2_apache_1 container and checking php version it's still showing as 7.2.28

Any ideas?

NudeWeb commented 3 years ago

I see on docker hub the docker file for fballiano/docker-magento2-apache-php has these lines FROM php:7.4-apache MAINTAINER Fabrizio Balliano fabrizio@fabrizioballiano.com

but in Github FROM php:7.2-apache MAINTAINER Fabrizio Balliano fabrizio@fabrizioballiano.com

I assume that docker-compose pull would use the docker hub file ?

NudeWeb commented 3 years ago

Think its the tag 'M2.4' you've used rather than 'latest'. In the file docker-compose.yml no tag is specified for the images so "latest' is assumed. The newest image with tag 'latest' is 6 months old so presumably this is version was using FROM php:7.2-apache

D1ll1ng commented 3 years ago

Think its the tag 'M2.4' you've used rather than 'latest'. In the file docker-compose.yml no tag is specified for the images so "latest' is assumed. The newest image with tag 'latest' is 6 months old so presumably this is version was using FROM php:7.2-apache

Was this ever solved? I have the same issue, I tried to use this https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache.html# With out luck, did you get it working?