A Magento 2.0 development container.
docker run -it -p 2022:22 -p 2080:80 northcloud/magento2 --base-url=http://localhost:2080
--base-url is not passed to the container, the container will prompt you for it if run was passed
-it. Be sure to include the port in your
--base-url even if it is port 80. If you're using a
--base-url that is not localhost (if running on your own machine) or not a --base-url of a remote box that has a domain name, be sure to edit your host's hosts file to include this url; nginx multiplexes sites on the same port using the url header in requests.
The container already has all the services it needs to run including:
- php (5.6)
- mysql (5.7)
Other complimentary services include:
On the first run the container initializes itself, start it after it ran once and it will spawn off a supervisord that monitors all the above services.
Xdebug on this container is configured to establish connections to port
Be sure to edit
/etc/php/5.6/fpm/php.ini to properly assign
<ip/domain> is the ip or domain of the machine which you intend
xdebug to connect to, I.e the machine where your IDE is listening