Documentation Download and setup CLI Data structures FAQ About

Canasta: Documentation

Table of contents


Canasta is, at heart, a MediaWiki Docker image. There are other Docker images available for MediaWiki, but one big strength of Canasta is that it bundles in a variety of related software, including 9 skins and 139 extensions. Below are the list of skins and extensions that come included. By default, only the Vector skin, out of all of these skins and extensions, is actually "installed"; in order to install any of the rest in your container, you just have to add a call to wfLoadSkin() or wfLoadExtension() for it to your LocalSettings.php file.

There are (theoretically) dozens of skins, and over 1,000 extensions, available for MediaWiki. So how was the set of skins and extensions in Canasta decided on? First, all of the skins and extensions that are bundled in with the official distribution of MediaWiki (3 skins and 28 extensions in all) are included in Canasta; see here for the full list.

Beyond this group, the general criteria are that they must work well with Canasta's MediaWiki version (1.35); they must be well-maintained, and be likely to remain well-maintained in the future; and they must provide important functionality that no other extension or skin that's included does.

Administrators who want to add some skin or extension that is not in this list to their wiki can easily do so in the standard way: by downloading it, adding it to either the /skins or /extensions directory, and adding the relevant call to either wfLoadSkin() or wfLoadExtension() to LocalSettings.php.

Canasta cannot yet be run on computers that use ARM processors, which means that it cannot yet be used on most Apple computers.

Skins included in Canasta

Extensions included in Canasta

Administrative tools

Admin Links · Interwiki


Contribution Scores · Editcount · GoogleAnalyticsMetrics · GTag · RottenLinks · WhoIsWatching

Automated page creation & modification

Data Transfer · Page Exchange · Replace Text


CommentStreams · ContactPage · DiscussionTools · DismissableSiteNotice · Echo · GlobalNotice · MassMessage · MassMessageEmail · NewUserMessage · Thanks · WikiForum

Data storage and querying

Cargo · Disambiguator · PageImages · Semantic Breadcrumb Links · Semantic Compound Queries · Semantic Drilldown · Semantic Extra Special Properties · Semantic MediaWiki · Semantic Result Formats · Semantic Scribunto · SimpleChanges · SubPageList


CharInsert · CodeEditor · CodeMirror · InputBox · LinkSuggest · Linter · Page Forms · SaveSpinner · TemplateData · TinyMCE · VEForAll · VisualEditor · WikiEditor

File upload & handling

CommonsMetadata · GoogleDocCreator · ImageMap · MsUpload · MultimediaViewer · PdfHandler · SimpleBatchUpload · TimedMediaHandler · UploadWizard

HTML & multimedia support

EmbedVideo · Flex Diagrams · Graph · HTML Tags · Maps · Math · SimpleMathJax · Widgets

Interface & display customization

BetaFeatures · Gadgets · Header Footer · SkinPerPage · TemplateStyles

Meta tags

Description2 · OpenGraphMeta · WikiSEO

PDF export


Read & write access

Approved Revs · LockAuthor · Lockdown


AdvancedSearch · CirrusSearch · Elastica

Social tools

AJAXPoll · SocialProfile · VoteNY

Spam control

AbuseFilter · ConfirmEdit · Nuke · SmiteSpam · SpamBlacklist · TitleBlacklist


LocalisationUpdate · UniversalLanguageSelector

User management

CheckUser · LookupUser · Renameuser · UserMerge

User registration

AntiSpoof · ConfirmAccount · Email Authorization · LDAPAuthentication2 · LDAPAuthorization · LDAPProvider · OATHAuth · OpenID Connect · PluggableAuth · WSOAuth

Other wikitext additions

Arrays · Cite · CiteThisPage · Display Title · External Data · Header Tabs · Labeled Section Transclusion · LinkTarget · Lingo · Loops · MagicNoCache · MintyDocs · MyVariables · NumerAlpha · ParserFunctions · Poem · RegularTooltips · Scribunto · SyntaxHighlight · UrlGetParameters · UserFunctions · Variables

Non-wikitext display utilities

Bootstrap · BootstrapComponents · BreadCrumbs2 · CategoryTree · MobileFrontend · Popups · SandboxLink · SecureLinkFixer


CookieWarning · EventLogging · EventStreamConfig · RevisionSlider · TextExtracts


The overall contents of Canasta are as follows:

Being a Docker image, Canasta places some files and directories in the host operating system as bind mounts - files and directories associated with the image but which are not contained in the Docker image's container itself, and which the administrator can thus modify, because they will not be removed or overwritten if the Docker image is updated. Canasta also stores the database outside of the Docker image, although this is stored as a volume (named "mysql-data-volume") and not a bind mount.

In Canasta, there are six bind mounts, which appear in the host OS as the files LocalSettings.php and composer.local.json, and the directories images/, extensions/, settings/ and skins/. Besides the database itself, these are the only six files or directories that administrators should modify.

Canasta file layout
The files and directories contained in the Canasta Docker image, and (to the right) how they appear to the administrator.

An explanation of the relevant parts of the Canasta image:

Canasta includes tree
The "real" LocalSettings.php file, the one read directly by MediaWiki, is at the top; below it are the files that it directly or indirectly includes, i.e. reads from.

Running maintenance scripts

Usually, you don't need to run maintenance scripts. update.php is always ran during the container startup process, so if you need to run it, it's best to remove the existing container and spin up a new one. The job queue is always automatically ran during the entire life of the container.

However, in the case you do need to run them, you can use:

sudo docker-compose exec web php /var/www/mediawiki/w/maintenance/SCRIPT_NAME.php

Creating Canasta-based distributions

Besides being usable as a downloadable itself, Canasta can also be used as the basis for for other MediaWiki distributions – letting you customize the exact set of skins and extensions available while keeping all the useful functionality contained within Canasta. You can also use Canasta as the basis for a Docker image for a single wiki – enabling easy, reliable deployment of a code set.

Adapting your stack repo for development

  1. Clone the Canasta image's repo into your Canasta stack repo by doing, in the base directory of your stack repo, this command: git clone
  2. Edit the docker-compose.override.yml file. Under the web container's configuration, add:
    image: canasta:dev
    context: ./Canasta/

    This will use the Dockerfile located in the newly-added Canasta/ directory.

If you made no other changes to your docker-compose.override.yml file, it should appear to be:

version: '3.7'
    image: canasta:dev
      context: ./Canasta/

Making a derivative image

Canasta supports creating derivative images using your own Dockerfile when done in the officially supported way.

Rather than forking the Canasta image's repo and modifying its Dockerfile, the correct way to make a derivative image is by creating your own Dockerfile whose base image is the Canasta image. The directives on your Dockerfile therefore is quite concise, clean, and only contain changes made to Canasta.

You can change _sources/canasta/CanastaDefaultSettings.php however you want, but you should never change _sources/canasta/LocalSettings.php, as this is reserved for Canasta developers to make fundamental changes needed to keep MediaWiki working on the Canasta tech stack.

Keep in mind:

Contributing to Canasta

If you want to contribute changes to base Canasta rather than simply making a change in a derivative image, you can make changes to the Canasta image at