Sign inSign up

netinventors/php-base

By netinventors

Updated 10 months ago

PHP base development images

Image
2

10K+

netinventors/php-base repository overview

PHP base development image

Available architectures

  • amd64
  • arm64

Server services

  • Debian Bullseye (11.7)
  • Apache 2.4.56
  • PHP versions
    • 7.3.33
    • 7.4.33
    • 8.0.28
    • 8.1.18
    • 8.2.5
  • PHP modules
    • apcu
    • curl
    • gd
    • imagick
    • imap
    • intl
    • mbstring
    • mcrypt
    • memcached
    • mysql
    • opcache
    • redis
    • soap
    • tidy
    • xdebug
    • xml
    • zip
  • AWS CLI 2.11.19
  • Symfony CLI 5.5.5
  • Composer 2.5.5 / 1.10.26
  • Cron Daemon
  • Ghostscript 9.53.3
  • ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25
  • MariaDB 10.5.19 (starts optional)
  • NodeJS 18.16.0
  • NPM 9.5.1
  • OpenSSH Server
  • Supervisor Daemon

Additional packages

  • default-mysql-client
  • git
  • joe
  • jq
  • less
  • nano
  • rsync
  • tidy
  • task 3.22.0
  • unzip
  • vim

Customizable environment variables

All described environment variables are displayed with their default values.

System
Variable nameDefault value
TZEurope/Berlin
Apache web server
Variable nameDefault value
WEB_USER_UID1000
WEB_USER_USERNAME"netinventors"
WEB_USER_PASSWORD"athene"
PHP

The currently available PHP versions are:

  • 7.3
  • 7.4
  • 8.0
  • 8.1
  • 8.2
Variable nameDefault valuePossible values
PHP_INI_SCAN_DIR"/usr/local/etc/php/cli/conf.d"
PHP_VERSION8.1
  • 7.3
  • 7.4
  • 8.0
  • 8.1
  • 8.2
ENABLE_XDEBUG"true"
  • true
  • false
Composer
Variable nameDefault valuePossible values
COMPOSER_HOME/usr/local/share/composer
COMPOSER_VERSION2
  • 1
  • 2
UPDATE_COMPOSER"false"
  • true
  • false
Node.js / NPM and Node.js module n
Variable nameDefault valuePossible values
NODE_VERSION18.16.0
NPM_VERSION9.5.1
UPDATE_NODE"false"
  • true
  • false
UPDATE_NPM"false"
  • true
  • false
UPDATE_N"false"
  • true
  • false
MySQL database server

If MYSQL_HOST is localhost or 127.0.0.1 a local MySQL server instance will be startet automatically.

Variable nameDefault value
MYSQL_HOST"localhost"
MYSQL_PORT"3306"
MYSQL_USER"netinventors"
MYSQL_PASSWORD"athene"
MYSQL_DATABASE"app"

Directories

LocationDescription
/usr/local/share/composerComposer cache directory
/usr/local/etc/php/apache2/conf.dAdditional loaded PHP configuring *.ini files for the Apache
/usr/local/etc/php/cli/conf.dAdditional loaded PHP configuring *.ini files for the CLI
/usr/local/var/logDirectory where all the logs goes to
/usr/local/var/backupDirectory storing created snapshots

Breaking changes

Some mapped volumes will now locate in different places.

Old locationNew location
/certsNo longer required
/etc/ssl/openssl.cnfNo longer required
/etc/apache2/sites-enabledNo longer required
/home/netinventors/.composer/usr/local/share/composer
/usr/local/etc/php/conf.d/usr/local/etc/php/cli/conf.d
/var/log/app/usr/local/var/log

Taskfile

You can run different commands directly via task. Executing task without an argument is an alias for task --list and shows the available commands.

Available commands
CommandDescription
snapshot:listLists available snapshots
snapshot:createCreates a snapshot
Example: task snapshot:create -- "Comment"
snapshot:restoreRestores a snapshot
Example: task snapshot:restore -- "810511133700"
snapshot:restore:filesRestores a snapshots files
Example: task snapshot:restore:files -- "810511133700"
snapshot:restore:databaseRestores a snapshots database
Example: task snapshot:restore:database -- "810511133700"
snapshot:removeRemoves a snapshot
Example: task snapshot:remove -- "810511133700"
snapshot:purgePurges all snapshots

Tag summary

Content type

Image

Digest

sha256:235a30be1

Size

519.7 MB

Last updated

10 months ago

docker pull netinventors/php-base