docker-magento2
docker-magento2 copied to clipboard
Issue running the example
I wanted to run the example and check out the environment. When I run docker-compose up -d i get the containers to keep restarting:

Am I missing something?
It doesn't install the source for you. Did you run composer install in the source directory?
Sorry, apparently we have never tested the switch to PHP 7.2 properly. I have fixed the base image.
Something happened between 2.2.7 and 2.2.10 though. The automated installation and/or upgrade is currently not working in our example. Magento usually struggles to keep things backwards compatible, as is probably the case here, but I'm not ruling out that our setup is wrong either.
The below fails:
CMD_CONFIG="${CMD_MAGENTO} setup:config:set --db-host="${MYSQL_HOSTNAME}" \
--db-name="${MYSQL_DATABASE}" --db-user="${MYSQL_USERNAME}" \
--db-password="${MYSQL_PASSWORD}" --key="${CRYPTO_KEY}""
with the error message:
magento-frontend | We saved default values for these options: db-user, db-engine, db-prefix, db-model, db-init-statements, session-save, lock-provider.
magento-frontend |
magento-frontend |
magento-frontend | [DomainException]
magento-frontend | Connection "default" is not defined
This is partly related to our configuration (app/etc/env.conf and app/etc/config.php) but in the last few hours I haven't been able to come up with a solution yet. There isn't much documented about this.