Sign inSign up

getmedia/grav-cms

By getmedia

•Updated almost 7 years ago

GRAV CMS Docker image for running your GRAV sites.

Image
1

376

getmedia/grav-cms repository overview

⁠GRAV CMS Docker

Docker Build Status GitHub issues GitHub

GRAV CMS Docker is build on Alpine linux which provides small, stable and effective environment for running the awesome GRAV CMS⁠. It is optimised for both, production and development.

Get this image from Docker Hub⁠.

getmedia/grav-cms

⁠Setting up ENV

VariableDescriptionDefault value
GRAV_VERSIONSpecifies version of GRAV CMSlatest
GRAV_ADMINIncludes GRAV Admintrue
HTTP_PORTSpecifies an UDP port where GRAV listens8080

Env variables are currently ignored. This feature will be available in any of next releases.

⁠Running the container

There are various ways how to run your GRAV CMS Docker. For development, Docker Compose⁠ is your best call. For production environment, you probably want to go with Kubernetes⁠ or Helm Charts⁠.

⁠Docker

Coming soon

⁠Docker Compose

This is extremely useful for theme development. Just create a docker-compose.yml in your theme root.

version: '3'
services:
    grav:
        image: "treatys/grav-cms"
        container_name: grav_cms
        env:
            GRAV_VERSION: latest
        ports:
          - 8080:8080
        volumes:
          - ./:/var/www/html/user/themes/{your-theme-dir}
          - ./.data/config:/var/www/html/user/config
          - ./.data/data:/var/www/html/user/data
          - ./.data/images:/var/www/html/user/images
          - ./.data/accounts:/var/www/html/user/accounts
          - ./.data/pages:/var/www/html/user/pages
          - ./.data/plugins:/var/www/html/user/plugins

Create .data directory in your project root. Do not forget to add this path to .gitignore file. Now you have persistent GRAV Docker for your development.

Just start it

docker-compose up -d

and enjoy it on http://localhost:8080.

⁠Kubernetes

Coming soon

⁠Helm

Coming soon

⁠Contributing

You are free to contribute this project, just create a Pull request. We will review it and optionaly include it in one of next releases.

⁠Support

We are happy to provide support. Just contact us on [email protected]⁠, ask on GRAV CMS Discord⁠ or bring up an issue⁠.

⁠License

This project is under GNU GPL v3. See license⁠

⁠Maintaner

GRAV CMS Image is maintained by GET Media Digital⁠.

Tag summary

Content type

Image

Digest

Size

105 MB

Last updated

almost 7 years ago

docker pull getmedia/grav-cms