fix: add MediaWiki environment variables to docker-compose
Some checks failed
Deploy Development / deploy (push) Successful in 33s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 5s
Test Suite / playwright-tests (push) Failing after 1m54s

Error: 500 Internal Server Error on MediaWiki import
Root cause: MEDIAWIKI_API_URL not configured in container

Fix:
- Added MEDIAWIKI_API_URL: https://karatetrainer.net/api.php
- Added MEDIAWIKI_USER, MEDIAWIKI_PASSWORD (optional, uses .env)
- Added category name overrides (4 categories)

Public wiki access (read-only) does not require authentication.
User/password only needed for write operations.

Note: .env file created locally but not committed (in .gitignore)
Users should copy .env.example and set their credentials if needed.
This commit is contained in:
Lars 2026-04-24 17:18:47 +02:00
parent c738f1234b
commit f54d8b2e03

View File

@ -37,6 +37,13 @@ services:
APP_URL: http://192.168.2.49:3098
ALLOWED_ORIGINS: http://192.168.2.49:3098
ENVIRONMENT: development
MEDIAWIKI_API_URL: https://karatetrainer.net/api.php
MEDIAWIKI_USER: ${MEDIAWIKI_USER:-}
MEDIAWIKI_PASSWORD: ${MEDIAWIKI_PASSWORD:-}
MEDIAWIKI_CATEGORY_EXERCISES: Übungen
MEDIAWIKI_CATEGORY_SKILLS: Fähigkeitsbeschreibung
MEDIAWIKI_CATEGORY_METHODS: Methodenbeschreibung
MEDIAWIKI_CATEGORY_MODELS: Reifegradmodelle
volumes:
- dev-shinkan-media:/app/media
ports: