Magento im Docker Container
Wer Docker* noch nicht kennt: Docker.com
Eine gute Grundlage um Magento im Docker-container zu betreiben ist dieses docker-compose file
version: '2' | |
services: | |
web: | |
image: meanbee/magento:5.6-apache | |
hostname: localdomain.dev | |
environment: | |
- DOCKER_FIX=true | |
- DEBUG=true | |
- VIRTUAL_HOST=http://localdomain.dev | |
- ENABLE_SENDMAIL=true | |
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
- PHP_INI_DIR=/usr/local/etc/php | |
- APACHE_CONFDIR=/etc/apache2 | |
- APACHE_ENVVARS=/etc/apache2/envvars | |
- PHP_EXTRA_BUILD_DEPS=apache2-dev | |
- PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 | |
- PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 | |
- PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 | |
- PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style | |
- PHP_VERSION=5.6.30 | |
volumes: | |
- /home/[your path to local magento data root path]/:/var/www/html/ | |
ports: | |
- 80:80 | |
- 443 | |
links: | |
- db | |
db: | |
image: mysql:mage | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_PASSWORD=test | |
- MYSQL_USER=test | |
- MYSQL_DATABASE=yourdatabasename | |
volumes: | |
- /home/...[path to custom mysql data]/:/var/lib/mysql/ | |
ports: | |
- 8306:3306 |
Logo und Docker: Copyright 2013-2015 Docker, Inc. All rights reserved.