Visit my latest wiki at wiki.pacroy.com
1) Install Mediawiki with sudo docker container run -d --name mediawiki -p 8080:80 mediawiki
2) Install MySQL with sudo docker container run -d --name mediawiki-mysql -v mediawiki-mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=<root_pwd> mysql
You can additionally install SMTP server with
sudo docker run -d --name mediawiki-smtp namshi/smtp
3) Create a new network with sudo docker network create mediawiki
4) Put all containers into a new network.
$ sudo docker network connect mediawiki mediawiki
$ sudo docker network connect mediawiki mediawiki-mysql
$ sudo docker network connect mediawiki mediawiki-smtp
1) Access your wiki at http://<host>:8080
2) Click to set up wiki
3) Select language and click Continue
4) Leave default and click Continue
5) Input your MySQL container name and its root password
6) Leave default and click Continue
7) Assign your wiki name and create your wiki account
8) Click Continue to start configure
9) Once done, click Continue again to download LocalSettings.php file.
10) Transfer this file into the container
sudo docker cp LocalSettings.php mediawiki:/var/www/html
11) You wiki is ready to use at http://<host>:8080/index.php/Main_Page
(WIP, Not Workable Solution yet)
Mailer returned: Failed to add recipient: pacroy@gmail.com [SMTP: Invalid response code received from server (code: 550, response: relay not permitted)]
To get email function work within Wiki, please proceed the following:
1) Edit LocalSettings.php and add the following lines
$wgSMTP = array(
'host' => "mediawiki-smtp", // could also be an IP address. Where the SMTP server is located
'IDHost' => "pacroy.com", // Generally this will be the domain name of your website (aka mywiki.org)
'port' => 25, // Port to use when connecting to the SMTP server
'auth' => false // Should we use SMTP authentication (true or false)
);
Reference: https://www.mediawiki.org/wiki/Manual:$wgSMTP
2) Copy into container sudo docker cp LocalSettings.php mediawiki:/var/www/html
Descrioption | Link |
---|---|
https://www.mediawiki.org/wiki/Markup_spec | Wiki Markup Spec |