Answer the question
In order to leave comments, you need to log in
docker-composer - working example of running a server with two versions of php?
We have a site on opencart 2, which by default uses php version 5.6 (yes, it’s 5.6 because many modules there work only for it and not higher).
Also on the same server there are CRON tasks - other scripts that already use php 7.3 and work with the same database as opencart.
Please tell me a working example of docker-composer, so that by default a site working with 5.6 spins on port 80, but scripts (crown tasks and others) can be run in the console inside the container, having a choice.
Type:
php some_script.php - will run the default script on 5.6
/opt/php73/bin/php some_script.php - will already run for 7.3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question