This fairly shonky and intended for internal test and dev servers only. Do not use in production.
A docker-compose configuration to quickly run up an instance of Squiz Matrix CMS:
- Suports Matrix 5.5.3.0+ (last tested with 5.5.6.0)
- PHP 7.3 with V8js support
- Postgres DB container
- Redis session storage
- Supports automatic installation of extensions on startup
- Cut down "core" Matrix with old extensions removed
- bulkmail
- ecommerce
- ldap
- marketo
- sharepoint
sugar(Not removed anymore because User has a hard dependency on it 😞)- trim
git clone git@github.com:cjc/composed-matrix.git
cd compose-matrix
#set up environment variables for port and domain
echo HTTP_PORT=81 > .env #defaults to 80
echo MATRIX_URL=127.0.0.1:81 >> .env #can be blank
echo POSTGRES_PASSWORD=madeup >> .env #required
#download Matrix source tgz to php/src/
lynx https://matrix.squiz.net/releases/vm
docker-compose up -d
docker-compose logs -f
#Wait for installation to complete, should see "NOTICE: ready to handle connections"
lynx 127.0.0.1:81/_admin
This repo doesn't contain the code for Matirx, you need to download it and any extensions you want.
An example of a populated php/src
folder
php/src/matrix-5-5-5-1.tgz
php/src/packages/json_web_token.tgz
php/src/packages/dropinapps_connector-1.0.3.tgz
php/src/packages/data_search.tgz
php/src/packages/content_api.tgz
Matrix extensions from https://marketplace.squiz.net/extensions can be installed by dropping the tgz file into php/src/packages
. Tested with Content API and JSON Web Token.
- webserver - based on
nginx
- application - based on
gytist/php-fpm-v8js
- database - based on
postgres:latest
- session storage -
redis