#Docker, appserver.io & Magento
Dockerfile to build appserver.io, MySQL, Redis and memcached in order to run Magento (CE).
- Docker version >= v1.3
- Docker Compose
- GNU Linux Kernel version >= 3.16 on the host machine
Clone the repository from GitHub
git clone https://github.com/DavidFeller/docker-appserver-magento.git cd docker-appserver-magento
Come up with a suitable name for your virtualHost and change
- (Optional) Add the hostname to your
hostsfile, if you are in a development enviroment.
- Unpack the magento source to any directory on your local drive (e.g.
/var/www/magento) and change the path in the volumes section of
docker-compose.ymlaccordingly. In production environments, you also might want to change the credentials in the mysql section.
Start all containers using
docker-compose. Of course, it's possible to start them individually.
- Mission accomplished! Now switch to your browser, open your new virtual host (e.g.
http://magento.dev) and install magento as usual. Make sure to enter
mysqlas database host (not localhost).