Docker containers for SilverStripe website development.
This container setup should not be used in production.
Install docker.
Run docker-compose up
.
Add SilverStripe websites to the sites
directory.
Websites will be available at localhost/yourwebsite
.
The composer
script can be used to run composer commands within the container root.
e.g. from within a site folder, run ../../composer install
will install dependencies.
The docker-compose.yml
is configured for using xdebug on macOS.
You need to change the remote_enable=0
config to remote_enable=1
before starting the containers to enable XDebug.
Database names will automatically be chosen, based on the website folder name in the sites directory.
e.g. SS_yourwebsite
, if your website folder is sites/yourwebsite
.
Once the mysql container is running, you can connect to it with your tool of choice at localhost:4306