Skip to content

idjavahost/docker-grav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GRAV ❤️ Docker

Simple implementation GRAV on docker container.

Features

  • Nginx with proxy supported
  • PHP with fpm version 7.2
  • Redis & memcaced optimized
  • Customizeable php configuration
  • Grav CLI ready to use

Environment Variables

  • VIRTUAL_HOST (:wordpress.localhost) : name your nginx virtual host, support multiple host separated by space
  • USERNAME (:wordpress) : linux username for running website & SSH login
  • USERGROUP (:wordpress) : linux user group for running website & SSH login
  • HTTPS (:off) : tell php if WordPress inside https proxy
  • HOME (:/var/www) : root website user home, WordPress root will added here inside website directory
  • SSH_PORT (:2222) : SSH port
  • SSH_PUBLIC_KEY (:'') : Use public key authentication and disable password clear text login
  • SSH_PASSWORD (:'') : SSH password optional if you prefered using SSH public key
  • TZ (:Asia/Jakarta) : Your PHP Timezone
  • PHP_MEMORY_LIMIT (:128M) : PHP memory limit
  • PHP_UPLOAD_MAX_SIZE (:50M) : PHP maximum file size on upload
  • PHP_SESSION_SAVE_HANDLER (:files) : Session handler, you can use redis or memcached here
  • PHP_SESSION_SAVE_PATH (:/var/lib/php/sessions) : Session save path location, for redis or memcaced use tcp or sock path
  • FPM_MAX_CHILDREN (:5) : php-fpm pm.max_children per request
  • FPM_START_SERVER (:2) : php-fpm initial child process
  • FPM_MAX_SPARE_SERVERS (:3) : php-fpm maximum spare server process
  • FPM_ERROR_LOG (:/dev/fd/2) : PHP error log, default output to docker logger
  • OPCACHE_ENABLE (:1) : 1 or 0 to disable php opcache code
  • OPCACHE_ENABLE_CLI (:0) : enable opcache on php cli
  • OPCACHE_MEMORY (:128) : number only, max opcache memory limit
  • NGINX_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 user
  • ADMIN_PASSWORD : GRAV administrator password
  • ADMIN_EMAIL : GRAV administrator email address

About

Simple implementation GRAV on docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published