#docker-nginx-magento Docker NGINX + Magento continer
This container is optimized for running Magento using NGINX
This container requires a seperate dedicated mysql container (timherman/mysql) to run. You can find timherman/mysql either at docker (https://registry.hub.docker.com/u/timherman/mysql/) or github (https://github.com/timHerman/docker-mysql)
docker run -d --name="be.punk.www.mysql" -e "MYSQL_LOCAL_USER=[username]" -e "MYSQL_LOCAL_DATABASE=[database]" -e "MYSQL_LOCAL_PASSWORD=[password]" -v /location/of/mysqldata/at/host/:/var/lib/mysql/ timherman/mysql
docker run -d --name="be.punk.www.magento" -p 80:80 -v /location/of/magentodata/at/host/:/var/www/ --link be.punk.www.mysql:db timherman/nginx-magento
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.
For more information leave a message or visit http://www.punk.be
Regards, Tim
Content type
Image
Digest
sha256:fc3ddb4e6…
Size
167.2 MB
Last updated
almost 11 years ago
docker pull timherman/nginx-magento