Public Repository

Last pushed: 22 days ago
Short Description
An image for Grav cms with php7.0, and Nginx.
Full Description

GRAV

In Short

This image is optimized for use with GRAV CMS

  • Nginx as a fast and efficient webserver.
  • PHP-FPM as the FastCGI engine.
  • Pushion as the minimal Linux container for this image.

Usage

Only works with Docker-Compose

Example docker-compose file:

docker-compose.yml

version: '2'

services:
  grav:
    image: maxvanderschee/grav:latest
    container_name: grav
    environment:
      VIRTUAL_HOST: example.nl
      LETSENCRYPT_HOST: example.nl
      LETSENCRYPT_EMAIL: example@example.nl
    volumes:
      - "/var/www/grav:/var/www/app"

  nginx-proxy:
    image: jwilder/nginx-proxy
    container_name: proxy
    restart: always
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "/etc/nginx/vhost.d"
      - "/usr/share/nginx/html"
      - "/var/run/docker.sock:/tmp/docker.sock:ro"
      - "/etc/nginx/certs"

  letsencrypt-nginx-proxy-companion:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: ssl
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
    volumes_from:
      - "nginx-proxy"

Dockerfile

  • Define the base image as maxvanderschee/nginx-php.
  • Install and update the core components for this new container like PHP7.0-cli, PHP7.0-gd, etc.
Docker Pull Command
Owner
maxvanderschee