Added .gitignore and switched to docker-compose with bind mounts for data persistance and changed file upload limit to 100MB
This commit is contained in:
parent
57eb89083f
commit
3d89660561
6 changed files with 54 additions and 10 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
## Directories to ignore
|
||||||
|
|
||||||
|
mdbdata/
|
||||||
|
wikidata/
|
||||||
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# MediaWiki with MariaDB
|
||||||
|
#
|
||||||
|
# Access via "http://localhost:8080"
|
||||||
|
# (or "http://$(docker-machine ip):8080" if using docker-machine)
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
mediawiki:
|
||||||
|
image: mediawiki:lts
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8090:80
|
||||||
|
links:
|
||||||
|
- database
|
||||||
|
volumes:
|
||||||
|
- ./wikidata/images:/var/www/html/images
|
||||||
|
- ./wikidata/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
|
||||||
|
- ./wikidata/IMG_3131.png:/var/www/html/resources/assets/IMG_3131.png
|
||||||
|
#- ./wikidata/extensions:/var/www/html/extensions
|
||||||
|
# After initial setup, download LocalSettings.php to the same directory as
|
||||||
|
# this yaml and uncomment the following line and use compose to restart
|
||||||
|
# the mediawiki service
|
||||||
|
- ./wikidata/LocalSettings.php:/var/www/html/LocalSettings.php
|
||||||
|
database:
|
||||||
|
image: mariadb
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
|
||||||
|
MYSQL_DATABASE: rd13mediawikidb
|
||||||
|
MYSQL_USER: wikiuser
|
||||||
|
MYSQL_PASSWORD: mwdbpw
|
||||||
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
||||||
|
volumes:
|
||||||
|
- ./mdbdata:/var/lib/mysql
|
||||||
|
|
@ -19,7 +19,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
||||||
## Uncomment this to disable output compression
|
## Uncomment this to disable output compression
|
||||||
# $wgDisableOutputCompression = true;
|
# $wgDisableOutputCompression = true;
|
||||||
|
|
||||||
$wgSitename = "CoLa-Wiki";
|
$wgSitename = "CoLa-Wissensdatenbank";
|
||||||
|
|
||||||
## The URL base path to the directory containing the wiki;
|
## The URL base path to the directory containing the wiki;
|
||||||
## defaults for all runtime URL paths are based off of this.
|
## defaults for all runtime URL paths are based off of this.
|
||||||
|
|
@ -36,7 +36,7 @@ $wgResourceBasePath = $wgScriptPath;
|
||||||
|
|
||||||
## The URL paths to the logo. Make sure you change this from the default,
|
## The URL paths to the logo. Make sure you change this from the default,
|
||||||
## or else you'll overwrite your logo when you upgrade!
|
## or else you'll overwrite your logo when you upgrade!
|
||||||
$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];
|
$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/IMG_3131.png" ];
|
||||||
|
|
||||||
## UPO means: this is also a user preference option
|
## UPO means: this is also a user preference option
|
||||||
|
|
||||||
|
|
@ -52,10 +52,10 @@ $wgEmailAuthentication = true;
|
||||||
|
|
||||||
## Database settings
|
## Database settings
|
||||||
$wgDBtype = "mysql";
|
$wgDBtype = "mysql";
|
||||||
$wgDBserver = "10.0.5.6";
|
$wgDBserver = "database";
|
||||||
$wgDBname = "rd13_mediawiki";
|
$wgDBname = "rd13mediawikidb";
|
||||||
$wgDBuser = "wikiuser";
|
$wgDBuser = "wikiuser";
|
||||||
$wgDBpassword = "rd13mediawikidbpw";
|
$wgDBpassword = "mwdbpw";
|
||||||
|
|
||||||
# MySQL specific settings
|
# MySQL specific settings
|
||||||
$wgDBprefix = "";
|
$wgDBprefix = "";
|
||||||
|
|
@ -101,14 +101,14 @@ $wgShellLocale = "C.UTF-8";
|
||||||
# Site language code, should be one of the list in ./languages/data/Names.php
|
# Site language code, should be one of the list in ./languages/data/Names.php
|
||||||
$wgLanguageCode = "de";
|
$wgLanguageCode = "de";
|
||||||
|
|
||||||
$wgSecretKey = "492d8002caa0078d866663a42bce5b38acc1825e4c7596106ec62c97ababf3ff";
|
$wgSecretKey = "fd1587e1fdc6eb88687a1d18525db92ebf214317ee4760689135f0331e05999c";
|
||||||
|
|
||||||
# Changing this will log out all existing sessions.
|
# Changing this will log out all existing sessions.
|
||||||
$wgAuthenticationTokenVersion = "1";
|
$wgAuthenticationTokenVersion = "1";
|
||||||
|
|
||||||
# Site upgrade key. Must be set to a string (default provided) to turn on the
|
# Site upgrade key. Must be set to a string (default provided) to turn on the
|
||||||
# web installer while LocalSettings.php is in place
|
# web installer while LocalSettings.php is in place
|
||||||
$wgUpgradeKey = "5051c93eb9140ca8";
|
$wgUpgradeKey = "2e8fbf3267405b69";
|
||||||
|
|
||||||
## For attaching licensing metadata to pages, and displaying an
|
## For attaching licensing metadata to pages, and displaying an
|
||||||
## appropriate copyright notice / icon. GNU Free Documentation
|
## appropriate copyright notice / icon. GNU Free Documentation
|
||||||
4
example.uploads.ini
Normal file
4
example.uploads.ini
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
upload_max_filesize = 100M
|
||||||
|
post_max_size = 100M
|
||||||
|
max_execution_time = 7200
|
||||||
|
max_file_uploads = 1000
|
||||||
|
|
@ -13,6 +13,7 @@ services:
|
||||||
- database
|
- database
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/html/images
|
- /var/www/html/images
|
||||||
|
#- ./wikidata:/var/www/html
|
||||||
# After initial setup, download LocalSettings.php to the same directory as
|
# After initial setup, download LocalSettings.php to the same directory as
|
||||||
# this yaml and uncomment the following line and use compose to restart
|
# this yaml and uncomment the following line and use compose to restart
|
||||||
# the mediawiki service
|
# the mediawiki service
|
||||||
|
|
@ -22,7 +23,9 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
|
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
|
||||||
MYSQL_DATABASE: rd13_mediawiki
|
MYSQL_DATABASE: rd13mediawikidb
|
||||||
MYSQL_USER: wikiuser
|
MYSQL_USER: wikiuser
|
||||||
MYSQL_PASSWORD: rd13mediawikidbpw
|
MYSQL_PASSWORD: mwdbpw
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
||||||
|
volumes:
|
||||||
|
#- ./mdbdata:/var/lib/mysql
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue