This Docker Image containing:
-
Alpine 3.11;
-
PHP 7.3 (CLI and FPM);
-
PHP database extensions:
- MySQL
- SQL Server
- PostgreSQL
- SQLite
- MongoDB
- Oracle - via OCI8 - see 'oracle' branch
-
all php extensions:
Core
ctype
curl
date
dom
filter
hash
iconv
json
libxml
mbstring
mcrypt
mongodb
mysqlnd
oci8 (see 'oracle' branch)
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
soap
SPL
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zlib
docker pull jgcl88/alpine-nginx-php
More info on Docker Hub: https://hub.docker.com/r/jgcl88/alpine-nginx-php/
docker run \
--name=myContainerName \
-v /myFolder:/app \
-p 80:80 \
-d jgcl88/alpine-nginx-php
Example containing:
- Simple phpinfo displaying all available drivers
- MySQL database
- SQL Server database
- PostgreSQL database
- SQLite database
- MongoDB database
- Oracle database (see 'oracle' branch)
- Migrations
See docker-compose.yml and docker-compose-databases.yml files.
docker-compose up -d
or
docker-compose -f docker-compose-databases.yml up -d
See Powerfull Lumen 5.5 example using this image and swagger-ui to change data in all databases: https://github.com/jgcl/powerfull-lumen-base-project