-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
150 lines (148 loc) · 3.33 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
networks:
pixel_network:
volumes:
dbdata:
mwcode:
services:
mediawiki:
build:
context: .
dockerfile: Dockerfile.mediawiki
args:
- CLONE_DEPTH=${CLONE_DEPTH}
env_file:
- .env
environment:
- COMPOSER_CACHE_DIR=/var/www/html/w/cache/composer
- XDEBUG_CONFIG=
- XDEBUG_ENABLE=false
- XHPROF_ENABLE=false
- ENABLE_WIKILAMBDA=${ENABLE_WIKILAMBDA}
- CLONE_DEPTH=${CLONE_DEPTH}
volumes:
- mwcode:/var/www/html/w
- ./LocalSettings.php:/var/www/html/w/LocalSettings.php
- ./src:/src
- ./repositories.json:/repositories.json
depends_on:
database:
condition: service_healthy
networks:
- pixel_network
mediawiki-web:
image: docker-registry.wikimedia.org/dev/buster-apache2:2.0.0-s1
expose:
- "8080"
env_file:
- .env
environment:
- XDEBUG_CONFIG=
- XDEBUG_ENABLE=false
- XHPROF_ENABLE=false
volumes:
- mwcode:/var/www/html/w
depends_on:
database:
condition: service_healthy
networks:
- pixel_network
database:
build:
context: .
dockerfile: Dockerfile.database
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- dbdata:/var/lib/mysql
- ./src/seedDb.sh:/docker-entrypoint-initdb.d/seedDb.sh
healthcheck:
test: [ CMD, mysql, my_wiki, -e, status ]
interval: 5s
timeout: 10s
retries: 20
networks:
- pixel_network
novnc:
profiles:
- manual
build: novnc
environment:
- DISPLAY_WIDTH=1280
- DISPLAY_HEIGHT=1024
- PIXEL_NOVNC_PORT
networks:
- pixel_network
ports:
- "${PIXEL_NOVNC_PORT}:${PIXEL_NOVNC_PORT}"
visual-regression:
profiles:
- manual
init: true
build:
context: .
dockerfile: Dockerfile.visual-regression
args:
- BACKSTOPJS_VERSION=6.3.25
working_dir: /pixel
env_file:
- .env
environment:
- DISPLAY=novnc:0
volumes:
- ./context.json:/pixel/context.json
- ./viewports.js:/pixel/viewports.js
- ./utils.js:/pixel/utils.js
- ./config:/pixel/config
- ./src:/pixel/src
- ./report:/pixel/report
shm_size: 2gb
cap_add:
- SYS_ADMIN
networks:
- pixel_network
a11y-regression:
profiles:
- manual
init: true
build:
context: .
dockerfile: Dockerfile.a11y-regression
args:
- PA11Y_VERSION=7.0.0
working_dir: /pixel
env_file:
- .env
environment:
- DISPLAY=novnc:0
volumes:
- ./context.json:/pixel/context.json
- ./viewports.js:/pixel/viewports.js
- ./utils.js:/pixel/utils.js
- ./config:/pixel/config
- ./src:/pixel/src
- ./report:/pixel/report
shm_size: 2gb
cap_add:
- SYS_ADMIN
networks:
- pixel_network
png-optimizer:
build:
context: .
dockerfile: Dockerfile.png-optimizer
volumes:
- ./report:/pixel/report
- ./png-optimizer.sh:/opt/scripts/png-optimizer.sh
working_dir: /pixel/report
networks:
- pixel_network
nginx-proxy:
image: nginx:alpine
ports:
- "${PIXEL_MW_HOST_PORT}:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- mediawiki-web
networks:
- pixel_network