Git Product home page Git Product logo

docker-wordpress-hhvm's Introduction

Nginx, Redis, Wordpress, HHVM

HHVM runs Wordpress behind Nginx/BoringSSL. Comes with plugin for/from Mailgun.org, and CDN Linker, which caches to Redis if you enable that.

Starting the container triggers database(s) restore from backups (if available and need be), and creates daily backups to another volume (listed below). Cron daemon is fcron.

Usage

Wordpress takes its data needed to connect to MariaDB/MySQL through environment variables, as provided by Docker image MariaDB.

Start with:

/bin/docker run --rm --name my_mariadb \
  -e MYSQL_ROOT_PASSWORD=YYYYYYYYYYY \
  -e MYSQL_USER=myuser -e MYSQL_PASSWORD=mypasswd \
  -e MYSQL_DATABASE=my_wp \
  -v /var/customer/me/mysql:/var/lib/mysql \
  "mariadb:10.1"

And finally (all volumes are optional):

/bin/docker run --rm --name my_web \
  --link "my_mariadb:MYSQL" \
  -p 80:80 -p 443:443 \
  -v /var/customer/me/backup:/var/www/backup \
  -v /var/customer/me/log:/var/log \
  -v /var/customer/me/hhvm-cache:/var/cache/hhvm \
  wmark/wordpress-hhvm

Notable volumes:

  1. /etc/ssl — for your own SSL certificates (web.key is the private key, web.crt your certificate followed by your issuer's)
  2. /etc/nginx/vhosts.d — customize Nginx' settings, add your own domain name
  3. /var/www/html — this directory gets served by Nginx/HHVM/PHP
  4. /var/cache/hhvm — HHVM stores its compiled-PHP–files here
  5. /var/www/backup — daily backups of the MySQL or MariaDB database(s) go here, the latest is symlinked as latest
  6. /var/log — logfiles
  7. /etc/fcrontab — not really a directory, but in case you want other cronjobs: inject that file

docker-wordpress-hhvm's People

Contributors

mark-kubacki avatar

Watchers

 avatar  avatar

Forkers

g0ld3lux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.