Sign inSign up

rajadevops07/mediawiki

By rajadevops07

•Updated over 5 years ago

We can create media wiki site from this docker image

Image
0

90

rajadevops07/mediawiki repository overview

How to use this image.

This image only contains Apache httpd with the defaults from upstream. There is no PHP installed, but it should not be hard to extend. On the other hand, if you just want PHP with Apache httpd see the PHP image and look at the -apache tags. If you want to run a simple HTML server, add a simple Dockerfile to your project where public-html/ is the directory containing all your HTML.

Create a Dockerfile in your project

FROM rajadevops07/mediawiki:1.0 COPY ./html/ /var/www/html

Then, run the commands to build and run the Docker image:

$ docker build -t mediawiki .

$ docker run -dit --name my-mediawiki-app -p 8080:80 mediawiki

Visit http://localhost:8080⁠ and you will see It works!

Without a Dockerfile

If you don't want to include a Dockerfile in your project, it is sufficient to do the following:

$ docker run -dit --name my-mediawiki-app -p 8080:80 -v "$PWD":/var/www/html/ rajadevops07/mediawiki:1.0

Tag summary

Content type

Image

Digest

Size

326.3 MB

Last updated

over 5 years ago

docker pull rajadevops07/mediawiki:1.0