#docker-nginx-magento Docker NGINX + Magento container
This container is optimized for running Magento using NGINX and PHP-FPM, with enabled ionCube PHP loader for encrypted modules.
docker-compose up -d
docker-machine-nfs
docker-compose up -d
Activates NFS on docker-machine virtualbox: https://github.com/adlogix/docker-machine-nfs
Put "dump.sql.gz" to project root folder and execute script:
docker exec -it kmplzt_web_1 /scripts/import.sh
Where kmplzt_web_1 the project cotainer name, for show list of containers in current directory use:
docker-compose ps
127.0.0.1 localhost
192.168.59.103 dockerhost mysql kmplzt.dev
Some extensions require ionCube and this docker image has pre-installed ionCube module. But you need to set server_name in /etc/ngnix/conf.d/sites-enabled/default
(inside the container) corresponding to allowed domain names. For example for allowed domains like *.allow-site.dev
server_name can be like this:
# Make site accessible from http://docker.allow-site.dev/
server_name docker.allow-site.dev;
127.0.0.1 localhost kmplzt.dev
./scripts/xdebug-start.sh
./scripts/xdebug-stop.sh
In our example the magento container is linked to the mysql container under the alias db. This means that you'll have to edit your config file in such a way that the mysql host is no longer localhost but db.
Regards,