GithubHelp home page GithubHelp logo

timkelty / craftcms-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wyveo/craftcms-docker

0.0 1.0 0.0 125 KB

Craft3/Craft2 CMS Docker base (Nginx, PHP-FPM 7, PostgreSQL/MariaDB, Redis)

License: MIT License

PHP 48.36% Dockerfile 51.64%

craftcms-docker's Introduction

Docker Hub; wyveo/craftcms-docker License MIT

Introduction

This is a Craft 3 / Craft 2 base running on the nginx-php-fpm docker image.

Versioning

Docker Tag Git Branch Craft Release Database Caching
latest craft3 3.3.15 PostgreSQL 11.5 Redis 5.0.6
craft2 craft2 2.7.10 MariaDB 10.4.8 Redis 5.0.6

Features:

  • Nginx 1.17.x, PHP-FPM 7.3.x, Git 2.11.0
  • imageMagick image manipulation library

Clone repo and run

To run, clone the git repo and run docker-compose up:

version craft3

$ 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.

version craft2

$ 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.

Editing CraftCMS files

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.

craftcms-docker's People

Contributors

colinwilson avatar artus avatar nickfreedom avatar nickedelenbos avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.