{"id":17324603,"url":"https://github.com/joeyates/dokku-mediawiki-postgres","last_synced_at":"2026-04-15T09:31:26.508Z","repository":{"id":66248173,"uuid":"468350478","full_name":"joeyates/dokku-mediawiki-postgres","owner":"joeyates","description":"A Dockerfile configuration to run Mediawiki under Dokku","archived":false,"fork":false,"pushed_at":"2022-03-22T09:13:27.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-06T16:41:54.814Z","etag":null,"topics":["dokku","mediawiki","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeyates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T13:18:16.000Z","updated_at":"2023-12-14T09:58:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2ec8f4e-1f82-433f-8e64-fb1882f10320","html_url":"https://github.com/joeyates/dokku-mediawiki-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeyates/dokku-mediawiki-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyates%2Fdokku-mediawiki-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyates%2Fdokku-mediawiki-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyates%2Fdokku-mediawiki-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyates%2Fdokku-mediawiki-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeyates","download_url":"https://codeload.github.com/joeyates/dokku-mediawiki-postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyates%2Fdokku-mediawiki-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31834502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dokku","mediawiki","postgresql"],"created_at":"2024-10-15T14:11:10.292Z","updated_at":"2026-04-15T09:31:26.466Z","avatar_url":"https://github.com/joeyates.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dokku-mediawiki-postgres\n\nA Dockerfile-based configuration for running\nMediawiki as a Dokku app.\n\n# Configure\n\nCopy .envrc.sample to .envrc and edit it.\n\n# Create App\n\n```\ndokku apps:create $DOKKU_APP\ndokku postgres:create $DOKKU_DB\ndokku postgres:link $DOKKU_DB $DOKKU_APP\ndokku domains:set $DOKKU_APP $APP_DOMAIN\n```\n\n# Configure the Site\n\n```\ndokku config:set --no-restart $DOKKU_APP \\\n  MW_SITE_NAME={{YOUR SITE NAME}} \\\n  MW_SERVER={{THE BASE URL FOR YOUR SITE}}\n```\n\nOptionally, set the time zone:\n\n```\ndokku config:set --no-restart $DOKKU_APP \\\n  MW_TIMEZONE={{A TIME ZONE}}\n```\n\nOptionally, add a custom logo:\n\n```\ndokku config:set --no-restart $DOKKU_APP \\\n  MW_LOGO_URL={{THE URL OF A 135x135 LOGO FOR YOUR SITE}}\n```\n\nOptionally, set the favicon:\n\n```\ndokku config:set --no-restart $DOKKU_APP \\\n  MW_FAVICON_PATH={{THE PATH TO THE FAVICON FOR YOUR SITE}}\n```\n\n# Configure Uploads Directory\n\nChoose a path on your server tohold uploads:\n\n```\nexport HOST_IMAGES_PATH='/some/path/on/server'\n```\n\n```\nssh root@$DOKKU_HOST \"mkdir -p $HOST_IMAGES_PATH\"\nssh root@$DOKKU_HOST \"chown -R 33:33 $HOST_IMAGES_PATH\"\ndokku storage:mount $DOKKU_APP $HOST_IMAGES_PATH:/var/www/html/images\n```\n\n33 is the uid and gid for www-data in the mediawiki image.\n\nBy default, file uploads are limited to 2MB.\nTo increase this value, set `MW_MAX_UPLOAD_SIZE`\nto the largest file size to accept.\n\nE.g., to set the limit to 10MB:\n\n```\ndokku docker-options:add $DOKKU_APP build '--build-arg \"MW_MAX_UPLOAD_SIZE=10M\"'\ndokku ps:rebuild $DOKKU_APP\n```\n\n# Set Secrets\n\nSet two secrets - the secret key (for session encryption)\nand the upgrade key (to allow upgrades to the MediaWiki software).\n\nThe upgrade key can be any (secure) string.\n\n```\ndokku config:set --no-restart $DOKKU_APP \\\n  MW_SECRET_KEY=$(openssl rand -hex 32) \\\n  MW_UPGRADE_KEY={{YOUR UPGRADE KEY}}\n```\n\n# Enable Sending Email\n\nIf you have an SMTP account available for sending email,\nset the various `MW_SMTP_*` values **and** `MW_FROM_EMAIL`, e.g.:\n\n```\ndokku config:set $DOKKU_APP \\\n  MW_SMTP_HOST={{HOST}} \\\n  MW_SMTP_PORT={{PORT}} \\\n  MW_SMTP_USERNAME={{USER NAME}} \\\n  MW_SMTP_PASSWORD={{PASSWORD}} \\\n  MW_FROM_EMAIL={{THE EMAIL ADDRESS ASSOCIATED WITH THOSE CREDENTIALS}}\n```\n\nThis will set up the Mediawiki variables $wgSMTP and $wgPasswordSender.\n\nNote: this will not work if the password includes slashes ('/').\n\n# Skins\n\n## Change Default Skin\n\nBy default, 3 skins are available (the \"symbolic\" name is in brackets):\n\n* 'MonoBook' ('monobook'),\n* 'Timeless' ('timeless'),\n* 'Vector' ('vector').\n\nSet the default skin (use the skin's \"symbolic\" name):\n\n```\ndokku config:set $DOKKU_APP MW_DEFAULT_SKIN=monobook\n```\n\n## Enable Specific Skins\n\n```\ndokku config:set $DOKKU_APP MW_SKINS=MonoBook,Vector\n```\n\nNB: Use the skins full names.\n\n## Install Custom Skins\n\nDownload the code for the custom skin to a directory\non your server.\n\n```\nexport MY_CUSTOM_SKIN_PATH=/home/me/SomeSkin\nexport MY_CUSTOM_SKIN_NAME=SomeSkin\ndokku storage:mount $DOKKU_APP $MY_CUSTOM_SKIN_PATH:/var/www/html/skins/$MY_CUSTOM_SKIN_NAME\n```\n\nIf you have multiple custom skins, separate their names with commas.\n\nThen add your custom skin to `MW_SKINS` (see above).\n\n# Install Extensions\n\nDownload the extension to a directory on your server.\n\n```\nexport EXTENSION_PATH=/home/me/SomeExtension\nexport EXTENSION_NAME=SomeExtension\ndokku storage:mount $DOKKU_APP $EXTENSION_PATH:/var/www/html/extensions/$EXTENSION_NAME\n```\n\n```\ndokku config:set $DOKKU_APP MW_EXTENSIONS=$EXTENSION_NAME\n```\n\nSeparate multiple extensions with commas.\n\n\n# Add Completely Custom Code\n\nIf the above does not cover your configuration needs,\nyou can add code to `require` at the end of LocalSettings.php\nby creating a file `CustomSettings.php`.\n\nLet's say your `CustomSettings.php` code is in '/home/me/mediawiki'.\n\n```\nexport CUSTOM_SETTINGS_DIRECTORY=/home/me/mediawiki\n```\n\n```\ndokku storage:mount $DOKKU_APP $CUSTOM_SETTINGS_DIRECTORY:/var/www/html/custom\ndokku config:set $DOKKU_APP MW_REQUIRE_CUSTOM_SETTINGS=1\n```\n\n# Set Up\n\nIn a browser, go to $APP_DOMAIN/mw-config/\n\n# Enable Debug Output\n\nIf you're having problems and need debug output on errors:\n\n```\ndokku config:set $DOKKU_APP MW_SHOW_EXCEPTION_DETAILS=1\n```\n\nWhen no longer required:\n\n```\ndokku config:unset $DOKKU_APP MW_SHOW_EXCEPTION_DETAILS\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyates%2Fdokku-mediawiki-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeyates%2Fdokku-mediawiki-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyates%2Fdokku-mediawiki-postgres/lists"}