Public | Automated Build

Last pushed: 9 months ago
Short Description
123
Full Description

Up magento without install php, nginx, mysql

1. Add to your project using composer:

composer require --dev hws47a/docker-magento-run=dev-master

2. Run using docker:

docker-compose -f vendor/hws47a/docker-magento-run/docker-compose.yml up -d

3. Create new db and import magento here (if needed)

docker exec -i dockermagentorun_mysql_1 mysql -uroot -ppw -h127.0.0.1 -e 'create database db'
docker exec -i dockermagentorun_mysql_1 mysql -uroot -ppw -h127.0.0.1 db < dump.sql

4. Change app/etc/local.xml in \<connection> section to

                <host><![CDATA[mysql]]></host>
                <username><![CDATA[root]]></username>
                <password><![CDATA[pw]]></password>
                <dbname><![CDATA[db]]></dbname>

5. Open website by adding in browser 127.0.0.1, localhost or other added to /etc/hosts alias

Troubleshooting

1. Disable default apache on macosx

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Docker Pull Command
Owner
hws47a
Source Repository

Comments (0)