GRAV CMS Docker image for running your GRAV sites.
376
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
| Variable | Description | Default value |
|---|---|---|
| GRAV_VERSION | Specifies version of GRAV CMS | latest |
| GRAV_ADMIN | Includes GRAV Admin | true |
| HTTP_PORT | Specifies an UDP port where GRAV listens | 8080 |
Env variables are currently ignored. This feature will be available in any of next releases.
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.
Coming soon
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.
Coming soon
Coming soon
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.
We are happy to provide support. Just contact us on [email protected], ask on GRAV CMS Discord or bring up an issue.
This project is under GNU GPL v3. See license
GRAV CMS Image is maintained by GET Media Digital.
Content type
Image
Digest
Size
105 MB
Last updated
almost 7 years ago
docker pull getmedia/grav-cms