Docker Magento support
Docker support php libraries
mv .env.sample .env
mkdir -p data/backup data/es-data data/mysql-data
Edit config on the .env file
cd /conf/nginx
openssl req -newkey rsa:4096 \
-x509 \
-sha256 \
-days 3650 \
-nodes \
-out local.crt \
-keyout local.key
docker-compose up -d
docker-compose down -v
php bin/magento setup:install --base-url=https://magento.local/ \
--db-host=mysql --db-name=magento --db-user=root --db-password=123456 \
--admin-firstname=Dylan --admin-lastname=Ngo [email protected] \
--admin-user=admin --admin-password=admin123 --language=vi_VN --currency=VND --timezone=Asia/Ho_Chi_Minh \
--session-save=db --use-rewrites=1 --use-secure=1 --use-secure-admin=1 --elasticsearch-host=elasticsearch --elasticsearch-port=9200 --search-engine=elasticsearch7 --elasticsearch-index-prefix=pdm --elasticsearch-enable-auth=false --cleanup-database
cp conf/nginx/default.conf.sample conf/nginx/default.conf
vim /etc/hosts
Add line
127.0.0.1 magento.local
# Clean OPCache
opcache
Enter: clean
# Enable OPCache
opcache
Enter: on
# Disable OPCache
Enter: off
docker exec -ti php bash
xdebug -h
# Enable XDebug
xdebug
Enter: on
# Disable XDebug
xdebug
Enter: off
Go to mysqladmin: http://localhost:8080
Content type
Image
Digest
sha256:59847447a…
Size
267.8 MB
Last updated
about 2 years ago
docker pull dylanops/php:7.4.33-newrelic