MediaWiki in Docker-Container

Aus Tutorials
Version vom 15. August 2022, 17:33 Uhr von Martin Kirner (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{note|Noch in Bearbeitung}} == docker-compose.yaml == <pre> vi docker-compose.yaml <pre> <pre> 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…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

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:





Zurück zu MediaWiki, Docker