Sign inSign up

outeredge/edge-docker-php

By outeredge

Updated 4 months ago

Base docker image for running PHP web applications.

Image
2

10K+

outeredge/edge-docker-php repository overview

edge-docker-php

Ubuntu running Nginx, PHP and Node.

Provided Software

  • PHP
  • Nginx
  • Node & NPM
  • Composer

Configuration Options

Most configuration can be done with environment variables. Here are the available options:

EnvironmentDefaultDescription
ENABLE_CRONOffEnables crond, add your cron jobs to /var/spool/cron/crontabs/edge. Remember to add an empty line at the end!
ENABLE_REDISOffEnabled a local redis server
ENABLE_SSHOffEnables SSH/SFTP access to the container with user edge (for dev purposes only)
ENABLE_DEVOffRuns PHP as the edge user to simplify permissions (for dev purposes only)
SSH_PASSWORD-Set SSH password for user edge, required for SSH access to work
SSH_PORT2222Set the port for the sshd server
CHISEL_PORT8022Set the port for the chisel tunnel
PHP_DISPLAY_ERRORSOffDisplay PHP errors in the browser, not recommended for production
PHP_OPCACHE_VALIDATEOnForces OPcache to check for updates on every request, turn Off for production
PHP_TIMEZONEEurope/LondonSpecify the PHP date.timezone
PHP_MAX_CHILDREN30Specify the maximum number of concurrent PHP processes
XDEBUG_ENABLEOffEnables the Xdebug PHP extension
XDEBUG_HOST-Specify the remote host Xdebug should connect to
WEB_ROOT/var/wwwSet's the web server root directory
NGINX_CONFdefaultSpecify the Nginx conf file to use from /templates/nginx-${NGINX_CONF}.conf.j2
NGINX_PORT8080Set the Nginx listening port
SMTP_HOSTsmtp.mailtrap.ioSet SMTP hostname (uses MSMTP for sendmail)
SMTP_PORT25Set SMTP port
SMTP_USER-Set SMTP username
SMTP_FROM-Set SMTP envelope-from header
SMTP_PASS-Set SMTP password
SMTP_TLSOffEnable TLS support, by default STARTTLS is enabled on port 587
SMTP_CHECK_CERTSOnSpecifying Off will disable SMTP TLS certificate checks
Nginx configuration

To add custom Nginx rules, specify these in $WEB_ROOT/nginx.conf

Tag summary

Content type

Image

Digest

sha256:172dc570c

Size

307.6 MB

Last updated

4 months ago

docker pull outeredge/edge-docker-php:8.4-frankenphp-super