This is a Craft 3 / Craft 2 base running on the nginx-php-fpm docker image.
Docker Tag | Git Branch | Craft Release | Database | Caching |
---|---|---|---|---|
latest | craft3 | 3.0.29 | PostgreSQL 10.5 | Redis 4.0.11 |
craft2 | craft2 | 2.7.3 | MariaDB 10.3.10 | Redis 4.0.11 |
Features:
- Nginx 1.15.x, PHP-FPM 7.2.x, Git 2.11.0
- imageMagick image manipulation library
To run, clone the git repo and run docker-compose up
:
$ git clone https://github.com/wyveo/craftcms-docker.git
$ cd craftcms-docker
$ sudo docker-compose up -d
navigate to http://<HOSTNAME>/index.php?p=admin
to begin installing Craft 3.
NOTE: if the above url doesn't work, try navigating to http://<HOSTNAME>/admin/install
instead.
$ git clone -b craft2 --single-branch https://github.com/wyveo/craftcms-docker.git
$ cd craftcms-docker
$ sudo docker-compose up -d
navigate to http://<HOSTNAME>/admin
to begin installing Craft 2.
You can access the CraftCMS volume by going to the physical location of the craftcmsdocker_craftcms-data
volume.
$ docker volume ls
DRIVER VOLUME NAME
local craftcmsdocker_craftcms-data
local craftcmsdocker_craftcms-logs
local craftcmsdocker_postgresql-data
$ docker volume inspect craftcmsdocker_craftcms-data
[
{
"CreatedAt": "2018-05-17T11:35:52+02:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/craftcmsdocker_craftcms-data/_data"
"Name": "craftcmsdocker_craftcms-data",
"Options": {},
"Scope": "local"
}
]
$ cd /var/lib/docker/volumes/craftcmsdocker_craftcms-data/_data
This directory is where the CraftCMS files live, and where you can edit/update/backup whatever you need.