Extension:Wikispeech/Develop

From Linux Web Expert

Revision as of 09:33, 17 January 2024 by imported>Sebastian Berlin (WMSE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Docker

  1. Setup Mediawiki.
  2. Create docker-compose.override.yml for Mediawiki like this:
    version: '3.7'
    services:
      mediawiki:
        volumes:
          # ~/workspace/wikispeech/Wikispeech is where you have Wikispeech Git repo.
          - ~/workspace/wikispeech/Wikispeech:/var/www/html/w/extensions/Wikispeech:cached
        networks:
          - default
          - wikispeech
    
      mediawiki-web:
          networks:
          - default
          - wikispeech
    
      mediawiki-jobrunner:
        volumes:
          - ~/workspace/wikispeech/Wikispeech:/var/www/html/w/extensions/Wikispeech:cached
    
      mariadb:
        image: 'bitnami/mariadb:latest'
        volumes:
          - mariadbdata:/bitnami/mariadb
        environment:
          - MARIADB_ROOT_PASSWORD=root_password
          - MARIADB_USER=my_user
          - MARIADB_PASSWORD=my_password
          - MARIADB_DATABASE=my_database
        ports:
          - 3307:3306
    
    volumes:
      mariadbdata:
        driver: local
    networks:
      wikispeech:
        external: true
    
  3. Create docker-compose.override.yml for Speechoid like this:
    version: '3.8'
    services:
      symbolset:
        networks:
          - default
          - wikispeech
    
      wikispeech-server:
        networks:
          - default
          - wikispeech
    
    networks:
      wikispeech:
        external: true
    
  4. Create network: docker network create wikispeech