-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_mediawiki.yml
23 lines (20 loc) · 1.04 KB
/
docker-compose_mediawiki.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3.2'
services:
web:
image: mediawiki
ports:
- 4441:80 # internal docker port 80, media wiki accessible at http://host:4441
environment:
- PUID=0 # change this to your docker runner user, default to admin (bad)
- PGUID=0 # change this to your docker runner user, default to admin (bad)
volumes:
- ./LocalSettings.php:/var/www/html/LocalSettings.php # linking the docker directory to your server directory, change BEFORE the colon :
- /AppData/Wiki/database:/var/www/data # linking the docker directory to your server directory, change BEFORE the colon :
- /AppData/Wiki/image:/var/www/html/images # linking the docker directory to your server directory, change BEFORE the colon :
deploy: # limits the amount of resource that mediawiki can use, i find 512M of RAM good enough but can be 128M etc
resources:
limits:
cpus: 0.50
memory: 512M
restart: unless-stopped # if we crash, restart
## Tutorial: https://laim.scot/blog/mediawiki-qnap-docker