Sign inSign up

foun10/eden-phpfpm

By foun10

•Updated 3 months ago

PHPFPM container

Image
1

10K+

foun10/eden-phpfpm repository overview

⁠EDEN - PHPFPM

⁠General information

This container provides php 5.6, 7.0, 7.1, 7.2 and 7.3 trough php fpm and is part of the eden project by foun10.

⁠Environment variables

NameDescriptionpossible values (/format)defaultmandatory
APP_DIRThe app directory.any valid dir/var/www/appn
HTDOCS_DIRThe htdocs directory.any valid dirsame as APP_DIRn
DB_HOSTThe database host.any valid hostmysqln
DB_USERThe database username.any valid usernamerootn
DB_PASSThe database password.any valid passwordrootn
DB_NAMEThe database name.any valid db nameappn
DB_DUMPThe dump file or directory from which you want to import the queries on the first run.any valid path or fileEMPTYn
BACKUP_URLThe url from which you want to grab the backup.any valid urlEMPTYn
BACKUP_USERThe username for the backup download.any valid usernameEMPTYn
BACKUP_PASSThe password for the backup download.any valid passwordEMPTYn
PROJECT_URLThe project url for the config files. If you use docker dns something like _FOLDERNAME__web_1.local.dockerany valid urlEMPTYn
PROJECT_TYPEDepending on the project type the script available at https://github.com/foun10/eden-phpfpm-project-types⁠ will be executed.any valid project typeEMPTYn
USER_MAILThe user mail for the default user.any valid mail[email protected]⁠n
USER_PASSThe password for the default user.any valid passwordrootn
FILE_PERMISSIONSIf set the file permission of the files under APP_DIR will be changed to the defined permission.any valid permission modeEMPTYn
CUSTOM_UIDIf set the uid for the files under APP_DIR will be changed to the defined uid. Use default for the default container uidany valid uidEMPTYn
UPDATE_GITIGNOREIf set to y the gitignore file will automatically updated.y or nnn

⁠Additional commands

There are three possible hooks to execute additional commands at the startup. Place a file under APP_DIR/eden-phpfpm/TYPE.sh. Valid types are pre, post and always.

⁠First run

  • After the first run a file with the name init.lock will be created. Remove it to rerun the setup script again.
  • If a db dump file or path is provided the run script will run the queries.
    • If a directory is provided the query are executed in alphabetical order. It's suggested to name the files with an numbered prefix like 000_dump.sql.
  • If a backup url is provided the backup will be downloaded and extracted at the app dir
    • The backup file must be .tar.gz zipped.
    • WARNING: ALL FILES WHICH ARE NOT UNDER VERSION CONTROL WILL BE DELETED BEFORE THE BACKUP WILL BE EXTRACTED

Tag summary

Content type

Image

Digest

sha256:915763cd4…

Size

374.6 MB

Last updated

3 months ago

docker pull foun10/eden-phpfpm