mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
Tasks: - Enable docker_compose_flush_handlers=true so services come up immediately. - Add DB readiness guard via maintenance/sql.php (SELECT 1). - Run maintenance/install.php on empty schema with robust changed_when/failed_when (merge stdout+stderr); keep secrets hidden. - Run maintenance/update.php for migrations with neutral changed_when unless work is done. - Make admin creation idempotent: tolerate 'already exists' and 'Account exists', keep async+no_log. Config changes: - Remove LocalSettings.php template and its host bind-mount from compose. - Drop MediaWiki settings path variables and META namespace variable (unused after switch). Result: First boot is fully automated (schema + admin), subsequent runs are cleanly idempotent. Ref: ChatGPT conversation (Aug 28, 2025, Europe/Berlin) — https://chatgpt.com/share/68b0d2e1-9bc0-800f-81a5-db03ce0b81e3.
20 lines
1.1 KiB
YAML
20 lines
1.1 KiB
YAML
# General
|
|
application_id: "web-app-mediawiki"
|
|
database_type: "mariadb"
|
|
container_port: 80
|
|
|
|
# Mediawiki
|
|
MEDIAWIKI_SITENAME: "{{ applications | get_app_conf(application_id, 'sitename') }}"
|
|
MEDIAWIKI_URL: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
|
|
|
|
## Docker
|
|
MEDIAWIKI_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.version') }}"
|
|
MEDIAWIKI_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.image') }}"
|
|
MEDIAWIKI_CONTAINER: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.name') }}"
|
|
MEDIAWIKI_VOLUME: "{{ applications | get_app_conf(application_id, 'docker.volumes.data') }}"
|
|
MEDIAWIKI_USER: "www-data"
|
|
|
|
# User
|
|
MEDIAWIKI_ADMINISTRATOR_NAME: "{{ users.administrator.username }}"
|
|
MEDIAWIKI_ADMINISTRATOR_PASSWORD: "{{ users.administrator.password }}"
|
|
MEDIAWIKI_ADMINISTRATOR_EMAIL: "{{ users.administrator.email }}" |