- install Docker CE
- install Docker Compose
- make a new
.envfile fordocker-composeto use (copy.env.exampleand change as needed) - ensure you have some SSL cert keypair in
$NGINX_SSL_PATHnamedanalytics.worldbrain.io.{crt,key} - run
docker-compose up -dto start up the docker containers in the background - visit
localhost:ANALYTICS_HTTP_PORTin your browser (whereANALYTICS_HTTP_PORTis whatever port number defined in.env) - complete Piwik installation wizard
During the Piwik installation wizard, the connection to the DB will need to be set up. When asked, simply set the database server to db, root for username, and use the root DB password as you specified in .env. Db name can be anything.
The DB instance runs on a separate container which is made available to the Piwik container at the hostname db (via docker-compose conf).
When asked about which site to track, set it to worldbrain.io. This doesn't matter so much as we will set things up more specifically from the extension-side, but still required in the wizard.
The user details asked for in the wizard will be used for logging into the Piwik server dashboard.