Changes

Jump to navigation Jump to search
Added Intranet docker-compose.yml configuration
Line 8: Line 8:     
Regardless of the method used, this guide will also include any extensions you have in the build/extensions folder.
 
Regardless of the method used, this guide will also include any extensions you have in the build/extensions folder.
 +
 +
== Intranet - no proxy ==
 +
Use this if on an Intranet with no Internet access.  NGINX-Proxy is using Let's Encrypt and will fail without Internet access.  If this becomes a heavily used site then consider putting this behind a proxy.
 +
 +
* Create '''/srv/nginx-proxy'''
 +
* Add this file
 +
 +
=== docker-compose.yml ===
 +
docker-compose.yml
 +
 +
  version: '3'
 +
  services:
 +
    web:
 +
      image: mediawiki
 +
      build: build/.
 +
      container_name: wiki
 +
      depends_on:
 +
        - database
 +
          ## parsoid is bundled as part of 1.35+, only uncomment if using an older version
 +
          #- parsoid
 +
      restart: always
 +
      ports:
 +
        - 8080:80
 +
      links:
 +
        - database
 +
      volumes:
 +
        - /srv/wiki/html/images:/var/www/html/images
 +
        ## TODO: remove the # below AFTER you have downloaded the LocalSettings.php file
 +
        #- /srv/wiki/LocalSettings.php:/var/www/html/LocalSettings.php
 +
    database:
 +
      image: mariadb
 +
      container_name: db
 +
      restart: always
 +
      environment:
 +
        MYSQL_DATABASE: mediawiki
 +
        ## TODO: Change the password below
 +
        MYSQL_USER: wikiuser
 +
        ## TODO: Change the password below
 +
        MYSQL_PASSWORD: wiki
 +
        MYSQL_ROOT_PASSWORD: changeme
 +
      volumes:
 +
        - /srv/wiki/db:/var/lib/mysql
 +
     
 +
      ## parsoid is bundled as part of 1.35+, only uncomment if using an older version
 +
      #parsoid:
 +
      #  image: thenets/parsoid:0.10
 +
      #  container_name: parsoid
 +
      #  restart: always
 +
      #  environment:
 +
      #  - PARSOID_NUM_WORKERS=0
 +
      #    - PARSOID_DOMAIN_wiki=http://web/api.php
 +
      #  networks:
 +
      #    - default
    
== nginx-proxy ==
 
== nginx-proxy ==
 +
Use this if your site is on the Internet
 +
 
* Create '''/srv/nginx-proxy'''
 
* Create '''/srv/nginx-proxy'''
 
* Add this file
 
* Add this file

Navigation menu