compose.yaml 910 B

1234567891011121314151617181920212223242526272829303132
  1. # MediaWiki with MariaDB
  2. #
  3. # Access via "http://localhost:8080"
  4. services:
  5. mediawiki:
  6. image: mediawiki
  7. restart: always
  8. ports:
  9. - 8080:80
  10. links:
  11. - database
  12. volumes:
  13. - images:/var/www/html/images
  14. # After initial setup, download LocalSettings.php to the same directory as
  15. # this yaml and uncomment the following line and use compose to restart
  16. # the mediawiki service
  17. # - ./LocalSettings.php:/var/www/html/LocalSettings.php
  18. database: # <- This key defines the name of the database during setup
  19. image: mariadb
  20. restart: always
  21. environment:
  22. # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
  23. MYSQL_DATABASE: my_wiki
  24. MYSQL_USER: wikiuser
  25. MYSQL_PASSWORD: example
  26. MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
  27. volumes:
  28. - db:/var/lib/mysql
  29. volumes:
  30. images:
  31. db: