fspringveldt / ss-docker-setup
There is no license information available for the latest version (dev-master) of this package.
Default docker setup for Silverstripe
Package info
github.com/fspringveldt/ss-docker-setup
Type:project
pkg:composer/fspringveldt/ss-docker-setup
dev-master
2017-04-27 00:13 UTC
This package is auto-updated.
Last update: 2026-02-13 14:32:15 UTC
README
Clones down a runnable docker Silverstripe environment. This sets up an eco-system with a database, a web-server (PHP + Apache) and a PHPMyAdmin container so you can access your database. A reverse nginx-proxy container is also used to provide virtual host names functionality.
Setup
- Install Composer and Docker
- Then run
composer create-project -s dev fspringveldt/ss-docker-setup <desired-folder-name>. This pulls down the project and all it's files. - Edit the file named .env project's root directory, adding values after the equals signs
- Edit your local hosts file (/etc/hosts on -nix systems) to point values given for PMA_VIRTUAL_HOST, DB_VIRTUAL_HOST and SS_VIRTUAL_HOST (defined in .env file above) to docker vm ip address
- Run
cd <desired-folder-name> - Run
docker-compose buildto build the images - Once built, run
docker-compose up -dto fire them up. To take them down rundocker-compose down, adding a -v flag to remove any mounts.
Once you're setup you can shell into your ss-site container as such: docker exec -ti ss-site /bin/bash from whence you can run all your PHP CLI commands (git clone, composer create-project, etc.)