Simple implementation GRAV on docker container.
- Nginx with proxy supported
- PHP with fpm version 7.2
- Redis & memcaced optimized
- Customizeable php configuration
- Grav CLI ready to use
VIRTUAL_HOST
(:wordpress.localhost) : name your nginx virtual host, support multiple host separated by spaceUSERNAME
(:wordpress) : linux username for running website & SSH loginUSERGROUP
(:wordpress) : linux user group for running website & SSH loginHTTPS
(:off) : tell php if WordPress inside https proxyHOME
(:/var/www) : root website user home, WordPress root will added here insidewebsite
directorySSH_PORT
(:2222) : SSH portSSH_PUBLIC_KEY
(:'') : Use public key authentication and disable password clear text loginSSH_PASSWORD
(:'') : SSH password optional if you prefered using SSH public keyTZ
(:Asia/Jakarta) : Your PHP TimezonePHP_MEMORY_LIMIT
(:128M) : PHP memory limitPHP_UPLOAD_MAX_SIZE
(:50M) : PHP maximum file size on uploadPHP_SESSION_SAVE_HANDLER
(:files) : Session handler, you can use redis or memcached herePHP_SESSION_SAVE_PATH
(:/var/lib/php/sessions) : Session save path location, for redis or memcaced use tcp or sock pathFPM_MAX_CHILDREN
(:5) : php-fpm pm.max_children per requestFPM_START_SERVER
(:2) : php-fpm initial child processFPM_MAX_SPARE_SERVERS
(:3) : php-fpm maximum spare server processFPM_ERROR_LOG
(:/dev/fd/2) : PHP error log, default output to docker loggerOPCACHE_ENABLE
(:1) : 1 or 0 to disable php opcache codeOPCACHE_ENABLE_CLI
(:0) : enable opcache on php cliOPCACHE_MEMORY
(:128) : number only, max opcache memory limitNGINX_ACCESS_LOG
(:/var/log/nginx/access.log main) :off
to disable nginx access log
If this GRAV need a clean install or mapped volume not configured to $HOME/grav
. You nedd to specify all GRAV installation information here. All Environment below is required for first run this container.
ADMIN_USERNAME
: GRAV administrator userADMIN_PASSWORD
: GRAV administrator passwordADMIN_EMAIL
: GRAV administrator email address