Demo:YAMLCode
Jump to navigation
Jump to search
- MediaWiki with MariaDB
- Access via "http://localhost:8080"
- (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3' services:
database: image: xlp0/mariadb_auto container_name: pkc-database-1 restart: always environment: # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php entrypoint: mysql_safed MYSQL_DATABASE: my_wiki MYSQL_USER: wikiuser MYSQL_PASSWORD: example # MYSQL_RANDOM_ROOT_PASSWORD: 'yes' volumes: - ./mountPoint/mariadb:/var/lib/mysql #- ./mountPoint/backup/automysqlbackup:/var/lib/automysqlbackup/ mediawiki: #image: mediawiki image: xlp0/pkc container_name: pkc-mediawiki-1 restart: always ports: - 9352:80 links: - database volumes: - ./mountPoint/images:/var/www/html/images # - ./mountPoint/services/matomo:/var/www/html/matomo # 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 - ./LocalSettings.php:/var/www/html/LocalSettings.php - ./backup:/var/www/html/backup - ./backup/ToBeUploaded:/var/www/html/backup/ToBeUploaded depends_on: - database