Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leandro-bertoluzzi/mediawiki-docker

Ready-to-use dockerized mediawiki with MariaDB
https://github.com/leandro-bertoluzzi/mediawiki-docker

docker docker-compose mediawiki

Last synced: about 2 months ago
JSON representation

Ready-to-use dockerized mediawiki with MariaDB

Awesome Lists containing this project

README

        

Mediawiki Docker


Github top language

Github language count

Repository size

License



About   |  
Features   |  
Technologies   |  
Requirements   |  
Starting   |  
License   |  
Author


## :dart: About
Docker compose setup to play around with [Mediawiki](https://www.mediawiki.org/wiki/MediaWiki), with automated configuration stage.

## :sparkles: Features
:heavy_check_mark: Automatic installation of Mediawiki

## :rocket: Technologies
The following tools were used in this project:

- [Mediawiki](https://www.mediawiki.org/wiki/MediaWiki)
- [Docker](https://www.docker.com/)
- [MariaDB](https://mariadb.org/ )

## :white_check_mark: Requirements
Before starting :checkered_flag:, you need to have [Docker](https://www.docker.com/) installed.

## :checkered_flag: Starting
```bash
# Clone this project
$ git clone https://github.com/Leandro-Bertoluzzi/mediawiki-docker

# Access the project
$ cd mediawiki-docker

# Copy and configure environment variables
$ cp db.env.dist db.env
$ cp wiki.env.dist wiki.env

# Start the containers
$ docker compose up -d

# The wiki will initialize in the
```

**NOTE:** In the step of configuring environment variables, you can use the following method to generate `MEDIAWIKI_SECRET_KEY`:

```bash
$ docker exec -it wiki-app php -a
php > echo bin2hex(random_bytes(32));
```

In a similar way, you can generate `MEDIAWIKI_UPGRADE_KEY` by using:

```bash
$ docker exec -it wiki-app php -a
php > echo bin2hex(random_bytes(8));
```

## :bulb: Tips and tricks

- You can check the installed extensions in the [Special:Version](http://localhost:8000/index.php/Special:Version) page.

## :wrench: Debugging

If you want to have direct access to the database, you can use the `debug` configuration for docker-compose.
This adds a `PHPMyAdmin` service and exposes the DB port (`3306`) in case you want to access it with DBeaver or another DB manager.

```bash
# Start the containers
$ docker compose -f docker-compose.yml -f docker-compose.debug.yml up -d

# The wiki will initialize in the
# PHPMyAdmin will initialize in the
```

## :memo: License
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.

Made with :heart: by Leandro Bertoluzzi

 

Back to top