Sign inSign up

minity/php54-webapp

By minity

•Updated over 9 years ago

Web-server for PHP applications that require interpreter of version 5.4

Image
0

1.0K

minity/php54-webapp repository overview

⁠PHP web-application server

This image provides web-application server functionality for apps required PHP interpreter version 5.4.

⁠Installed components

  • php 5.4 (fpm)
  • nginx-light
  • nullmailer SMTP-server

⁠Configuration

Web server's document root points to /src/www directory.

All requests, which aren't resolved as files, are forwarded to front controller /src/www/index.php.

Environment variableDescritionDefault value
VIRTUAL_HOSTUsed as host name in mail sender address. Also can be used with https://hub.docker.com/r/jwilder/nginx-proxy/⁠(required)
SMTP_ADDRESSMail Server address. If not set then application can not send mails.(undefined)
SMTP_PORTMail Server TCP port25
SMTP_USERMail Server user name(no user required)
SMTP_PASSWORDMail Server user password(no password required)
APP_UIDLinux user ID for application running1000
APP_GIDLinux user group ID for application running1000

⁠Usage

Running web-application:

docker run -d --name myapp \
        -e VIRTUAL_HOST=myapp.local \
        -e SMTP_ADDRESS=smtp.example.com \
        -e SMTP_PORT=2025 \
        -e SMTP_USER=smtp_user \
        -e SMTP_PASSWORD=smtp_secret \
        -e APP_UID=1001 \
        -v $PWD:/src \
    minity/php54-webapp

Tag summary

Content type

Image

Digest

sha256:dbf98db69…

Size

135.7 MB

Last updated

over 9 years ago

docker pull minity/php54-webapp