Sign inSign up

scwiki/wiki

By scwiki

•Updated almost 2 years ago

The docker stack powering the German Star Citizen Wiki

Image
0

3.4K

scwiki/wiki repository overview

⁠Star Citizen Wiki Docker

The Docker configuration powering https://star-citizen.wiki⁠.

https://github.com/StarCitizenWiki/WikiDocker⁠

⁠Usage

Replace $wgSecretKey in LocalSettings.php.

# Generates a 64 character long hex string 
echo "$(openssl rand -hex 32)"
# Or
php -r echo(bin2hex(openssl_random_pseudo_bytes(32)));

Add the Star Citizen Wiki API key to config\extensions\config\apiunto.php.

Change the site verification key in config\extensions\config\wikiseo.php.

Set the smtp password in config\system\mail.php.

Update the database settings in docker-compose.yaml and config\system\db.php.

Create required folders:

$ mkdir -p /etc/star-citizen.wiki
$ mkdir -p /var/lib/star-citizen.wiki
$ mkdir -p /srv/star-citizen.wiki/sitemap

Copy files to destination:

$ cp ./LocalSettings.php /etc/star-citizen.wiki
$ cp -R ./config /etc/star-citizen.wiki
$ cp -R ./container-settings /etc/star-citizen.wiki
$ cp -R ./includes /etc/star-citizen.wiki

Build the image:

./docker-build.sh

Note:
Elasticsearch requires vm.max_map_count to be at least 262144.
Run: sysctl -w vm.max_map_count=262144

Start the container:

docker-compose up -d

⁠Installation

Create the network:

docker network create --subnet=172.16.0.0/29 star-citizen.wiki

Set a database user and password in docker-compose.yaml and config/system/db.php.
Disable all volumes for the star-citizen.wiki container by commenting them out.
Start the database and wiki container:

docker-compose up -d db
docker-compose up -d star-citizen.wiki

Visit http://172.16.0.3 and install the wiki.
The LocalSettings file created in the installation step can be safely discarded.

Stop all container:

docker-compose down

Re-Enable all volumes except .smw.json.

Connect to the container and run the update script:

docker exec -it star-citizen.wiki /bin/bash

php maintenance/update.php --quick

Copy the content of /var/www/html/extensions/SemanticMediaWiki/.smw.json into .smw.json outside of the container and enable the mapping.

⁠Configuration

⁠Database

Configuration file: config/system/db.php⁠

⁠Mails

Configuration file: config/system/mail.php⁠
Used for sending mails from the wiki.

⁠SEO and Site verification

Configuration file: config/extensions/config/wikiseo.php⁠

⁠Wiki API Config

Configuration file: config/extensions/config/apiunto.php⁠ Settings for the Star Citizen Wiki API⁠.

⁠Stack

The Wiki stack consists of the following services:

⁠Upgrade notes

After a major update OAuth Consumers seem to get invalidated.
For each registered consumer a new one needs to get created.

Tag summary

Content type

Image

Digest

Size

403.7 MB

Last updated

over 5 years ago

docker pull scwiki/wiki