PHPackages                             brettt89/ss4-docker-compose - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. brettt89/ss4-docker-compose

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

brettt89/ss4-docker-compose
===========================

4.x-dev(9y ago)5741MITShell

Since May 19Pushed 5y agoCompare

[ Source](https://github.com/brettt89/ss-docker-compose)[ Packagist](https://packagist.org/packages/brettt89/ss4-docker-compose)[ RSS](/packages/brettt89-ss4-docker-compose/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

SilverStripe 4 docker development environment
=============================================

[](#silverstripe-4-docker-development-environment)

Docker based development environment for SilverStripe 4 applications Can be used on multiple environments at the same time.

Maintainer Contact
------------------

[](#maintainer-contact)

- Brett Tasker

Requirements
------------

[](#requirements)

- [Docker](https://docs.docker.com/engine/installation/)

Install
-------

[](#install)

To install globally run:

`composer global require brettt89/ss4-docker-compose`

Make sure your `~/.composer/vendor/bin` directory is in your PATH.

`echo 'export PATH=$PATH:~/.composer/vendor/bin/'  >> ~/.bash_profile`

Then you can run this script with `docker-ss ` in your project root.

How to use
----------

[](#how-to-use)

`docker-ss` in a nutshell is basically a wrapper for `docker-compose` with some added functionality and checks. all `docker-compose` commands should run as expected via `docker-ss`

### Environment file

[](#environment-file)

Ensure you have an environment file setup in your project root with the following settings.

```
# DB credentials
SS_DATABASE_CLASS = "MySQLPDODatabase"
SS_DATABASE_SERVER = "database"
SS_DATABASE_USERNAME = "root"
SS_DATABASE_PASSWORD = ""
SS_DATABASE_NAME = "SS_mysite"

```

### Start services

[](#start-services)

```
docker-ss up -d
```

By default, this setup will create 2 containers per project and 1 global nginx proxy (ss-proxy).

Containers:

- **web** (web server)
    - Hostname: `{folder_name}.local`
- **database** (database server)
    - Hostname: `{folder_name}.db.local`

NOTE: In order to access the servers by hostname you will need to map these domains to your "Hosts" IP.

E.g. File: `/etc/hosts`, (`{folder_name} = "./ss4"`)

```
127.0.0.1	ss4.local ss4.db.local

```

### Advanced usage

[](#advanced-usage)

The docker-compose executable included in this package does some additional checks and configuration with commands. This should always be used over the native docker-compose function.

However all docker-compose commands can be used via this package as per usual.

#### Running dev/build.

[](#running-devbuild)

```
docker-ss exec web ./framework/sake dev/build
```

#### SSH into web server (Bash terminal).

[](#ssh-into-web-server-bash-terminal)

```
docker-ss ssh
```

#### Accessing database from client

[](#accessing-database-from-client)

```
Host: {folder_name}.db.local
Port: 3306
Database: SS_mysite
Username: root
Password:

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d7967367c3797eb0077efe95964c746af01a64a5a7f34c9551a0bc57e5092f8?d=identicon)[brettt89](/maintainers/brettt89)

---

Top Contributors

[![brettt89](https://avatars.githubusercontent.com/u/4122344?v=4)](https://github.com/brettt89 "brettt89 (18 commits)")

### Embed Badge

![Health badge](/badges/brettt89-ss4-docker-compose/health.svg)

```
[![Health](https://phpackages.com/badges/brettt89-ss4-docker-compose/health.svg)](https://phpackages.com/packages/brettt89-ss4-docker-compose)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.5M1.3k](/packages/silverstripe-cms)[silverstripe/admin

SilverStripe admin interface

262.7M375](/packages/silverstripe-admin)[silverstripe/serve

Connects the PHP development server to SilverStripe

22427.3k2](/packages/silverstripe-serve)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/deploynaut

The SilverStripe deployment framework

723.5k2](/packages/silverstripe-deploynaut)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
