Skip to content

Latest commit

 

History

History
102 lines (89 loc) · 2.17 KB

README.md

File metadata and controls

102 lines (89 loc) · 2.17 KB

powerfull docker alpine nginx php 7.3 and drivers for all databases

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

docker pull jgcl88/alpine-nginx-php

More info on Docker Hub: https://hub.docker.com/r/jgcl88/alpine-nginx-php/

docker run

docker run \
    --name=myContainerName \
    -v /myFolder:/app \
    -p 80:80 \
    -d jgcl88/alpine-nginx-php

docker compose

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.

to up...

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