Extension:Wikispeech/Develop

From Linux Web Expert

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