MediaWiki in Docker-Container
Version vom 15. August 2022, 17:35 Uhr von Martin Kirner (Diskussion | Beiträge) (→docker-compose.yaml)
Noch in Bearbeitung
docker-compose.yaml
vi docker-compose.yaml
version: "3.7" services: mediawiki: image: mediawiki:1.38.2 restart: always links: - maria_db volumes: - ./images:/var/www/html/images # 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 ports: - 8080:80 networks: - mediawiki_net maria_db: image: mariadb:10.8.3 restart: always environment: MYSQL_ROOT_PASSWORD: 1234 MYSQL_DATABASE: mediawiki MYSQL_USER: wikiuser MYSQL_PASSWORD: wikiuser volumes: - ./initdb:/docker-entrypoint-initdb.d - ./database:/var/lib/mysql networks: - mediawiki_net adminer: image: adminer restart: always links: - maria_db environment: ADMINER_DEFAULT_SERVER: maria_db ports: - 9080:8080 networks: - mediawiki_net #volumes: # initdb: # images: # database: networks: mediawiki_net: