brettt89 / silverstripe-docker-compose

Composer project for SilverStripe Docker based Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SilverStripe Development Environment

This repository is designed to be used with SilverStripe development environments. It contains packages and functionality commonly used when developing with SilverStripe.

Maintainer Contact

Requirements

Installation

composer create-project brettt89/silverstripe-docker ./my/website/folder

./my/website/folder should be the root directory where your codebase and configuration files will live.

Applications packaged in docker-compose.yml
  • Apache Webserver
  • MySQL Database
  • Composer
  • SSPAK

Setup

These commands should be run from within the project folder created during Installation.

E.g. ./my/website/folder

Clone website into public/ directory
git clone <repo> public

NOTE: It is important that the website codebase exists in the public/ directory

Install composer dependencies:
docker-compose run composer install
Import database with sspak:

NOTE: Copy your sspak into the snapshots/ directory

docker-compose run sspak load snapshots/<sspak> public
Finally, bring up the site and the asset builder:
docker-compose up -d web

The asset builder uses gulp to watch the swift directory for any changes and rebuilds as necessary

The site will then be available at http://localhost/.

About

Composer project for SilverStripe Docker based Environment


Languages

Language:PHP 100.0%