-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
65 lines (65 loc) · 2.22 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# To use this image with docker-compose please look at the examples in example/docker-compose.
# This file is used for development together with .env which you can create by copying .env.default.
version: '3'
services:
mediawiki_wiki:
build: .
container_name: mediawiki_wiki
environment:
MEDIAWIKI_SERVER: http://localhost:8080
MEDIAWIKI_SITENAME: MyWiki
MEDIAWIKI_LANGUAGE_CODE: en
MEDIAWIKI_SECRET_KEY: ${SECRET_KEY}
#MEDIAWIKI_META_NAMESPACE: MyNamespace
MEDIAWIKI_DB_TYPE: mysql
MEDIAWIKI_DB_HOST: mediawiki_mysql
MEDIAWIKI_DB_PORT: 3306
MEDIAWIKI_DB_NAME: wikidb
MEDIAWIKI_DB_USER: wikiuser
MEDIAWIKI_DB_PREFIX: mywiki_
MEDIAWIKI_DB_TABLE_OPTIONS: ENGINE=InnoDB, DEFAULT CHARSET=binary
MEDIAWIKI_DB_PASSWORD: ${DB_PASSWORD}
MEDIAWIKI_ENABLE_UPLOADS: 1
MEDIAWIKI_MAX_UPLOAD_SIZE: 10M
MEDIAWIKI_DEFAULT_SKIN: vector
MEDIAWIKI_SMTP: 1
MEDIAWIKI_SMTP_SSL_VERIFY_PEER: 0
MEDIAWIKI_SMTP_HOST: ${SMTP_HOST}
MEDIAWIKI_SMTP_IDHOST: ${SMTP_IDHOST}
MEDIAWIKI_SMTP_PORT: 587
MEDIAWIKI_SMTP_AUTH: 1
MEDIAWIKI_SMTP_USERNAME: ${SMTP_USERNAME}
MEDIAWIKI_SMTP_PASSWORD: ${SMTP_PASSWORD}
MEDIAWIKI_EMERGENCY_CONTACT: ${EMERGENCY_CONTACT}
MEDIAWIKI_PASSWORD_SENDER: ${PASSWORD_SENDER}
MEDIAWIKI_EXTENSION_VISUAL_EDITOR_ENABLED: 1
MEDIAWIKI_EXTENSION_USER_MERGE_ENABLED: 1
MEDIAWIKI_FILE_EXTENSIONS: png,gif,jpg,jpeg,webp,pdf
MEDIAWIKI_DEBUG: 1
PHPFPM_WORKERS_START: 1
PHPFPM_WORKERS_MIN: 1
PHPFPM_WORKERS_MAX: 20
PARSOID_WORKERS: 1
ports:
- 127.0.0.1:8080:8080
depends_on:
- mediawiki_mysql
volumes:
- mediawiki_images:/images
- ./testdata/logo.png:/var/www/mediawiki/resources/assets/wiki.png:ro
- ./testdata/ExtraLocalSettings.php:/var/www/mediawiki/ExtraLocalSettings.php:ro
mediawiki_mysql:
image: mysql:5.7
container_name: mediawiki_mysql
environment:
MYSQL_DATABASE: wikidb
MYSQL_USER: wikiuser
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- 127.0.0.1:3306:3306
volumes:
- mediawiki_mysql:/var/lib/mysql
volumes:
mediawiki_images:
mediawiki_mysql: