mediawiki

This commit is contained in:
2025-03-23 18:38:32 +01:00
parent 33f09044e2
commit d269718841
3 changed files with 55 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
- name: Deploy MediaWiki
include_tasks: tasks/docker_service.yml
vars:
service_name: mediawiki
+43
View File
@@ -0,0 +1,43 @@
services:
db:
image: mariadb:11
environment:
MARIADB_USER: wiki
MARIADB_PASSWORD: {{ mediawiki_db_password }}
MARIADB_DATABASE: wiki
MARIADB_RANDOM_ROOT_PASSWORD: 1
restart: unless-stopped
volumes:
- ./mysql/conf.d:/etc/mysql/conf.d
mediawiki:
image: mediawiki
restart: always
depends_on:
- db
volumes:
- images:/var/www/html/images
- ./LocalSettings.php:/var/www/html/LocalSettings.php
networks:
- proxy
networks:
proxy:
external: true
# 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
# This key also defines the name of the database host used during setup instead of the default "localhost"
# database:
# image: mariadb
# restart: always
# environment:
# # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
# MYSQL_DATABASE: my_wiki
# MYSQL_USER: wikiuser
# MYSQL_PASSWORD: example
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
# volumes:
# - db:/var/lib/mysql
volumes:
images:
# db:
+8
View File
@@ -0,0 +1,8 @@
$ANSIBLE_VAULT;1.1;AES256
34373261306661343338643437303430616236646361383332333564323861633830353338643762
6438396639613866666336353838313632336262336261310a343335303464616266303863636232
30373831623835346337646137356634313832663239326531386432633063373636623962343139
3865363861646634660a393236623237656239616366313931663464336139326333643865356264
39386138636332636161643535386164313266303764373362366431613733646633343865363930
39623362613434316430343664343565653537343436393633393332343032623662353962366362
316433386639326262353539303833356134