forked from Kipjr/docker-mediawiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (71 loc) · 2.01 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
66
67
68
69
70
71
72
73
74
volumes:
LocalSettings:
driver: local
images:
driver: local
skins:
driver: local
extensions:
driver: local
db:
driver: local
initdb:
driver: local
networks:
net:
driver: bridge
ipam:
driver: default
config:
- subnet: ${NET_SUBNET:-192.168.8.224/28} #(8.201-8.206, 207)
driver_opts:
com.docker.network.bridge.name: mw_net
services:
mw.db:
image: 'mariadb:10'
container_name: mw.db
hostname: db
restart: always
networks:
- net
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_ALLOW_EMPTY_ROOT_PASSWORD: no
MYSQL_RANDOM_ROOT_PASSWORD: ${MYSQL_RANDOM_ROOT_PASSWORD:-yes}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TZ: 'Europe/Amsterdam'
volumes:
- db:/var/lib/mysql
- initdb:/docker-entrypoint-initdb.d
mw.php:
hostname: mw.php
container_name: mw.php
restart: always
networks:
- net
ports:
- ${MW_HOSTPORT:-127.0.0.1:8100}:80
image: ghcr.io/vslcatena/docker-mediawiki:${MW_VERSION:-lts}
pull_policy: always
build:
dockerfile: Dockerfile
context: ./src
args:
VERSION: lts
depends_on:
- mw.db
environment:
MW_SITE_SERVER: '${MW_SITE_SERVER}'
MW_DB_NAME: '${MYSQL_DATABASE:-wiki}'
MW_DB_USER: '${MYSQL_USER:-wikiuser}'
MW_DB_PASS: '${MYSQL_PASSWORD:-password}'
PHP_LOG_ERRORS: Off
PHP_ERROR_REPORTING: E_ALL & ~E_DEPRECATED & ~E_STRICT
TZ: Europe/Amsterdam
volumes:
- LocalSettings:/var/www/html/conf.d
- images:/var/www/html/images
- skins:/var/www/html/skins
- extensions:/var/www/html/extensions