MediaWiki-Docker/Configuration recipes/EventLogging

From mediawiki.org
Jump to navigation Jump to search

docker-compose.override.yml

version: '3.7'
services:
  eventlogging:
    image: docker-registry.wikimedia.org/dev/eventlogging:0.0.1
    ports:
      - "8100:8100"
LocalSettings.php
wfLoadExtension( 'EventLogging' );
$wgEventLoggingBaseUri = 'http://eventlogging:8100/event.gif';
Setup commands
  1. Clone the Extension:EventLogging extension into extensions/EventLogging
  2. You can tail the output to the eventlogging container with docker logs -f $(docker-compose ps -q eventlogging), or, pipe it to jq with docker logs -f $(docker-compose ps -q eventlogging) | jq or simply startup with docker-compose up (no -d flag).
  3. For client-side logging to work properly, you need to modify your system's /etc/hosts file with an entry that looks like this: 127.0.0.1 eventlogging