Browse Source

docker-compose.yml

docker compose file for wikibase
master
jules 4 years ago
parent
commit
a19ac9f7f9
  1. 165
      docker-compose.yml

165
docker-compose.yml

@ -0,0 +1,165 @@
# Wikibase with Query Service
#
# This docker-compose example can be used to pull the images from docker hub.
#
# Examples:
#
# Access Wikibase via "http://localhost:8181"
# (or "http://$(docker-machine ip):8181" if using docker-machine)
#
# Access Query Service via "http://localhost:8282"
# (or "http://$(docker-machine ip):8282" if using docker-machine)
version: '3'
services:
wikibase:
image: wikibase/wikibase:1.34-bundle
links:
- mysql
ports:
# CONFIG - Change the 8181 here to expose Wikibase & MediaWiki on a different port
- "8181:80"
volumes:
- mediawiki-images-data:/var/www/html/images
- quickstatements-data:/quickstatements/data
- ./wikibase-br-special/daaplogowiki.gif:/var/www/html/resources/assets/wiki.png
- ./wikibase-br-special/LocalSettings.php:/var/www/html/LocalSettings.php
- ./extensions/ConfirmEdit:/var/www/html/extensions/ConfirmEdit
- ./userMerge:/var/www/html/extensions/UserMerge
# - ./WikibaseLocalMedia:/var/www/extensions/WikibaseLocalMedia
depends_on:
- mysql
- elasticsearch
restart: unless-stopped
networks:
default:
aliases:
- daap.bannerrepeater.org
- wikibase.svc
# CONFIG - Add your real wikibase hostname here, for example wikibase-registry.wmflabs.org
environment:
- DB_SERVER=mysql.svc:3306
- MW_ELASTIC_HOST=elasticsearch.svc
- MW_ELASTIC_PORT=9200
# CONFIG - Change the default values below
- MW_ADMIN_NAME=admin
- MW_ADMIN_PASS=SCRssMXKwLrU4Jt3
- MW_ADMIN_EMAIL=zeroth@free.fr
- MW_WG_SECRET_KEY=37xvDQZhrQuxYqzM
# CONFIG - Change the default values below (should match mysql values in this file)
- DB_USER=wikiuser
- DB_PASS=3bKNXRFfUGwpNG9z
- DB_NAME=my_wiki
- QS_PUBLIC_SCHEME_HOST_AND_PORT=https://daap.bannerrepeater.org:9191
mysql:
image: mariadb:10.3
restart: unless-stopped
volumes:
- mediawiki-mysql-data:/var/lib/mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
# CONFIG - Change the default values below (should match values passed to wikibase)
MYSQL_DATABASE: 'my_wiki'
MYSQL_USER: 'wikiuser'
MYSQL_PASSWORD: '3bKNXRFfUGwpNG9z'
networks:
default:
aliases:
- mysql.svc
wdqs-frontend:
image: wikibase/wdqs-frontend:latest
restart: unless-stopped
ports:
# CONFIG - Change the 8282 here to expose the Query Service UI on a different port
- "8282:80"
depends_on:
- wdqs-proxy
networks:
default:
aliases:
- wdqs-frontend.svc
environment:
- WIKIBASE_HOST=daap.bannerrepeater.org
- WDQS_HOST=wdqs-proxy.svc
wdqs:
image: wikibase/wdqs:0.3.10
restart: unless-stopped
volumes:
- query-service-data:/wdqs/data
command: /runBlazegraph.sh
networks:
default:
aliases:
- wdqs.svc
environment:
- WIKIBASE_HOST=daap.bannerrepeater.org
- WIKIBASE_SCHEME=https
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
expose:
- 9999
wdqs-proxy:
image: wikibase/wdqs-proxy
restart: unless-stopped
environment:
- PROXY_PASS_HOST=wdqs.svc:9999
ports:
- "8989:80"
depends_on:
- wdqs
networks:
default:
aliases:
- wdqs-proxy.svc
wdqs-updater:
image: wikibase/wdqs:0.3.10
restart: unless-stopped
command: /runUpdate.sh
depends_on:
- wdqs
- wikibase
networks:
default:
aliases:
- wdqs-updater.svc
environment:
- WIKIBASE_HOST=daap.bannerrepeater.org
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
elasticsearch:
image: wikibase/elasticsearch:6.5.4-extra
restart: unless-stopped
networks:
default:
aliases:
- elasticsearch.svc
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
# CONFING, in order to not load quickstatements then remove this entire section
quickstatements:
image: wikibase/quickstatements:latest
ports:
- "9191:80"
depends_on:
- wikibase
volumes:
- quickstatements-data:/quickstatements/data
networks:
default:
aliases:
- quickstatements.svc
environment:
- QS_PUBLIC_SCHEME_HOST_AND_PORT=https://daap.bannerrepeater.org
- WB_PUBLIC_SCHEME_HOST_AND_PORT=https://daap.bannerrepeater.org
- WIKIBASE_SCHEME_AND_HOST=https://daap.bannerrepeater.org
- WB_PROPERTY_NAMESPACE=122
- "WB_PROPERTY_PREFIX=Property:"
- WB_ITEM_NAMESPACE=120
- "WB_ITEM_PREFIX=Item:"
volumes:
mediawiki-mysql-data:
mediawiki-images-data:
query-service-data:
quickstatements-data:
Loading…
Cancel
Save