Grav CMS with PHP 8.0, Nginx and Admin plugin installed
10K+
This is derivated from
Grav is a Fast, Simple, and Flexible file-based Web-platform. There is Zero installation required. Although Grav follows principles similar to other flat-file CMS platforms, it has a different design philosophy than most.
The underlying architecture of Grav is built using well established and best-in-class technologies. This is to ensure that Grav is simple to use and easy to extend. Some of these key technologies include:
This is derivated from
It is a Docker image based on minideb:bullseye linux with Grav CMS and PHP8.0/nginx.
docker create \
--name=grav \
--restart unless-stopped \
-p 80:80 \
-e DUID=1000 \
-e DGID=1000 \
-e GRAV_MULTISITE=subdirectory \
-v /data/containers/grav/backup:/var/www/grav/backup \
-v /data/containers/grav/logs:/var/www/grav/logs \
-v /data/containers/grav/user:/var/www/grav/user \
vincowl/Grav-PHP-Nginx-v2
docker start grav
You can choose between ,using tags, no tag is required for grav default installation.
Add one of the tags, if required:
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.
| Parameter | Function |
|---|---|
-p 80 | http |
-e DUID=1000 | for UserID - see below for explanation |
-e DGID=1000 | for GroupID - see below for explanation |
-e GRAV_MULTISITE=subdirectory | Deploy a Grav multisite (subdirectory) installation |
-v /var/www/backup | Contains your location for Grav backups |
-v /var/www/logs | Contains your location for your Grav log files |
-v /var/www/user | Contains your Grav content |
When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user DUID and group DGID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance DUID=1000 and DGID=1000, to find yours use id user as below:
$ id username
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
Access the webui at http://<your-ip>, for more information check out GRAV
docker exec -it grav /bin/bashdocker logs -f gravContent type
Image
Digest
sha256:a3992d920…
Size
217.8 MB
Last updated
about 1 month ago
docker pull vincowl/grav-php-nginx-v2