Sign inSign up

maxvanderschee/grav

By maxvanderschee

•Updated almost 9 years ago
Archived

An image for Grav cms with php7.0, and Nginx.

Image
0

248

maxvanderschee/grav repository overview

⁠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
      VIRTUAL_PROTO: https
      VIRTUAL_PORT: 443
      LETSENCRYPT_HOST: example.nl
      LETSENCRYPT_EMAIL: [email protected]
    volumes:
      - "/var/www/grav:/var/www/app"
    volumes_from:
      - "nginx-proxy"

  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.

Tag summary

Content type

Image

Digest

Size

265.6 MB

Last updated

almost 9 years ago

docker pull maxvanderschee/grav