Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leandro-bertoluzzi/mediawiki-docker
- Owner: Leandro-Bertoluzzi
- License: mit
- Created: 2023-12-17T18:48:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-18T03:47:26.000Z (about 1 year ago)
- Last Synced: 2024-12-19T05:43:33.465Z (about 2 months ago)
- Topics: docker, docker-compose, mediawiki
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Mediawiki Docker
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