forked from coop-cloud/mediawiki
ffcf33632954f17ef3da89d5a5a519278eeb31d3
Mediawiki
Mediawiki version 1.35
- Category: Apps
- Status: 1, alpha
- Image:
mediawiki, 4, upstream - Healthcheck: No
- Backups: Yes
- Email: 3
- Tests: 2
- SSO: 2 (OAuth, SAML)
Basic usage
- Set up Docker Swarm and
abra - Deploy
coop-cloud/traefik abra app new mediawiki --secrets(optionally with--passif you'd like to save secrets inpass)abra app config YOURAPPDOMAIN- be sure to change$DOMAINto something that resolves to your Docker swarm boxabra app deploy YOURAPPDOMAIN- Create an initial admin user:
abra app run YOURAPPDOMAIN app php /var/www/html/maintenance/createAndPromote.php --sysop YourUsername YourPassword
abra app config YOURAPPDOMAIN- edit.envrcand uncomment theSMTPlines. SetSMTP_HOSTtopostfix_relayforcoop-cloud/postfix_relay, ormailu_frontforcoop-cloud/mailu(assuming default stack names)- For
postfix_relay, add the domain to your email config –EXTRA_SENDER_DOMAINSinpostfix_relay. This doesn't seem to be required for Mailu. abra app deploy YOURAPPDOMAIN
Single Sign On
SimpleSAMLphp
This app includes optional SAML Single Sign On using
SimpleSAMLphp and Mediawiki's
Extension:SimpleSAMLphp, based on the
venatorfox/simplesamlphp image.
NOTE: currently, if you enable SAML then it'll disable Mediawiki's own user account system. Patches to make this configurable are welcome!
abra app config YOURAPPDOMAIN- uncomment lines in theSAMLsection (includingCOMPOSE_FILE)- Generate secrets: (add
--passif you want to store secrets inpass)abra app YOURAPPDOMAIN secret generate saml_admin_password v1 abra app YOURAPPDOMAIN secret generate saml_secret_salt v1 "pwgen -n 64 1" abra app deploy YOURAPPDOMAIN- Copy your SimpleSAMLphp metadata and certificates to the container (assuming
you have local
metadataandcertfolders:abra app YOURAPPDOMAIN cp metadata simplesaml:/var/simplesamlphp/ abra app YOURAPPDOMAIN cp cert simplesaml:/var/simplesamlphp/ - You can log into SimpleSAMLphp using the password you generated at https://$DOMAIN/simplesaml/ and test authentication
- Edit SimpleSAMLphp's
config.phpand changestore.sql.dsn:abra app YOURAPPDOMAIN run simplesaml vi /var/simplesamlphp/config/config.php # find 'store.sql.dsn' and edit to: # 'sqlite:/var/simplesamlphp/data/simplesamlphp.sq3'
OpenID Connect
abra app config YOURAPPDOMAIN- uncomment lines in theOPENIDsection (includingCOMPOSE_FILE)- Store your Keycloak-generated client secret in Docker:
abra app YOURAPPDOMAIN secret insert openid_client_secret v1 put-your-secret-here
abra app deploy YOURAPPDOMAIN
License
MIT License
Description
Languages
Shell
100%