2.3 KiB
Install
-
Make sure to comment out
- ./LocalSettings.php:/var/www/html/LocalSettings.php
indocker-compose.yaml
and rundocker-compose up --build -d
. An error will be raised if you use an existingLocalSettings.php
. -
Visit
http://localhost:8080/
-
Click
Please set up the wiki first.
and select a language -
Continue
-
Set up database
Database host: database (must be the same as the container name of mariadb)
Database name: (must be the same as MYSQL_DATABASE of docker-compose.yaml)
Database username: (must be the same as MYSQL_USER of docker-compose.yaml)
Database password: (must be the same as MYSQL_PASSWORD of docker-compose.yaml)
-
Continue
-
Set up wiki admin account and select
I'm bored already, just install the wiki.
if a detailed configuration is not needed. -
Continue
-
LocalSettings.php
will be downloaded automatically. -
Stop all the containers with
docker-compose down
and PutLocalSettings.php
in the root directory of the repo. -
(Important) Change
$wgDefaultSkin = "vector";
to$wgDefaultSkin = "vector-2022";
inLocalSettings.php
-
(Optional) Add the following lines below
$wgDefaultSkin
in order to display errors in your browser, if any. This will help you enable error display and debugging features for your MediaWiki installation.
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
-
(Important) Uncomment
- ./LocalSettings.php:/var/www/html/LocalSettings.php
indocker-compose.yaml
to apply the configuration inLocalSettings.php
-
run
docker-compose up --build -d
again. -
Sign in with the admin account
Checking files
docker exec -it --user=root {container id from docker ps} bash
e.g.,
docker exec -it --user=root 24a696c42c95 bash
Installing Vim editor inside container
apt-get update
apt-get install vim
Customizing CSS
Vector/resources/common/variable.less
- Change the hex code of @background-color-secondary