# Generate a secure password and place it in the area below uploads.ini:/etc/php5/fpm/conf.d/uploads.ini:ro LocalSettings.php:/var/www/html/LocalSettings.php # CHANGE THE PORT BELOW FROM 9999 TO YOUR DESIRED PORT # an SSL certificate to keep your passwords safe! # on your domain and putting the proxy behind # login to the site we recommend running Certbot # We are running the server behind NGINX which we # We suggest using the LTS, long term support images Notice and read the commented sections of the the docker-compose.yml file below – feel free to use this by copying and pasting the below into your own docker-compose file # Docker Compose Example for Kinda Lame As always, find a place for your Compose files by creating a new directory (that resembles the container name you’ll use later – like “wiki”). Getting started with Docker Composeĭocker has given us an example Docker Compose file to start with and we can use that as our basis, what I’ll show are my edits before copying some files from the container and running them locally. To do these things we need to run a second container, hack on php.ini and map the HTML files locally. Let’s setup a production database with it using Mariadb, configure our maximum upload size so we can upload large images (and import lots of templates) and prepare ourselves to install as many extensions as we need. Now we have MediaWiki running on port 80 and you can test this by visiting the localhost page: But we want persistence, we want our wiki to live on so let’s not just fire it up and walk away. To do so we just need a simple commmand docker run -name mediawiki -p 80:80 -d mediawiki To get started we could just run Docker’s, uh, run command to fire up a MediaWiki instance and that would be perfectly fine. Use Docker Compose with MediaWiki To Customize Your Wiki Experience Officially they have us do this with the LocalSettings.php file which will contain our settings for MediaWiki, we’ll just be taking things one step further. To do so we’ll just copy some files from the Docker container and mount them when we restart the image. There are other options like Bitnami’s image – but why stray from the official images? We can customize it to our liking without taking a performance hit which will be key. This is going to be our basis for the setup we’re going to run. To do so I suggest taking a look at the official Docker image page for Mediawiki. We suggest you start with their official instructions though I’ve covered how to install Docker in Debian 10 in another post about Mastodon. That’s right, you can host a wiki, using MediaWiki, even in a Windows 10 Docker container. Docker is just a cleaner way to try these things out – so we’re going to mark Docker as required for this project.Īgain, I don’t want to cover how to install Docker – we have assumed thus far you’re even running Linux though you don’t have to be. A fragile base system that might not get cleaned up should we decide to back out of our fun-time (maybe quarantine) project. A lot of the packages we like to discuss here on Kinda Lame are maybe not always the most complicated but they require a set of dependencies installed on your base system. We love Docker at Kinda Lame! Simply put it’s the easiest way to try out software without hosing your Linux (or Windows) install. It is the embodiment of the original world wide web dream – so let’s get started. Even in small business and corporate environments there is value in having a central data store for human knowledge and a searchable and linkable wiki is a great way to get that done. No matter the topic, fan pages, fiction or putting together a family background website – you can relatively easily and quickly start up a wiki site and start documenting whatever you’d like. And one of the coolest projects out there is the ability to self-host MediaWiki software that lets you start your own wiki site (like Wikipedia). There are too many cool projects out there to not take some time to play with and get your hands dirty. Here at Kinda Lame, we like self hosting things – being in control of our own software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |