This commit is contained in:
root
2023-03-29 13:04:10 +00:00
parent 8167183686
commit 5ec489e0e0
28 changed files with 426 additions and 108 deletions

View File

@@ -0,0 +1,12 @@
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'

View File

@@ -6,7 +6,7 @@ version: '3'
services:
mediawiki:
image: mediawiki
container_name: mediawiki
container_name: wiki
restart: always
ports:
- 8070:80
@@ -21,11 +21,11 @@ services:
# This key also defines the name of the database host used during setup instead of the default "localhost"
database:
image: mariadb
container_name: mediawiki_db
container_name: wikidb
restart: always
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: my_wiki
MYSQL_DATABASE: wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'