Docker environment for php web application
php7.4-fpm
mariadb latest
nginx alpine stable
redis latest
(elasticsearch 7.9.3 + kibana 7.9.3)
OR
manticoresearch latest
git clone git@github.com:tchartron/docker-php.git
cd docker-php
cp -a .docker ../myproject/.docker
cp .docker/docker-compose.yml ../myproject/docker-compose.yml
cd ../myproject
cp .docker/.env.example .docker/.env
Edit hostname, mysql passwords, db name...
Edit /etc/hosts to add your HOSTNAME
Edit docker-compose.yml to change container names, ports if you want, volumes names for mariadb and redis, ...
docker-compose up
docker-compose exec php php -m
[PHP Modules]
bcmath
Core
ctype
curl
date
dom
fileinfo
filter
ftp
gd
hash
iconv
intl
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]