mediawiki/README.md

31 lines
1.5 KiB
Markdown
Raw Normal View History

2018-01-07 02:51:55 -06:00
Notice
======
This image is deprecated. It will be maintained for personal use as long as it is feasible to do so. Please don't start a new instance using this image; instead consider one of the other actively maintained images such as [the official one](https://hub.docker.com/r/_/mediawiki/).
2014-06-20 01:44:35 -04:00
Mediawiki-Apache
2014-06-11 18:37:59 -05:00
================
2014-06-20 01:44:35 -04:00
2018-01-07 02:51:55 -06:00
This is a Docker image running Apache serving Mediawiki 1.30. It does not contain any databases; those should be run in a seperate container.
2014-06-20 01:44:35 -04:00
First, deploy a database container, [like this one by Tutum](https://registry.hub.docker.com/u/tutum/mariadb/):
```
docker run -d --name mariadb tutum/mariadb
```
You will likely want to make the database persistent, in this case done by adding:
```
docker run -d -v /path/on/host:/var/lib/mysql --name mariadb tutum/mariadb
```
Now you can deploy this container by running:
```
docker run -d -p 80:80 -v /path/on/host:/var/lib/mediawiki --link mariadb:mariadb iohannesarnold/mediawiki-apache
```
2014-06-20 01:58:49 -04:00
Where the ```-v``` flag is only necessary if you're interested in preserving files. Also, the ```link``` flag should reflect the name you gave your database container above.
2014-06-20 01:44:35 -04:00
Mediawiki should now be available on port 80 of the host server, and it will ask you to run configuration. The ```LocalSettings.php``` that results should be placed in the linked host directory created in the last step.
Congratulations! You now should have a working Mediawiki installation. Any updated version of this image should be able to be deployed over the same host directory for fast upgrades.