forked from CanastaWiki/Canasta
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (72 loc) · 2.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (72 loc) · 2.69 KB
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
# # Note: this is a dummy Compose file for CI, do not modify or use it until you know what you're doing
#
# WIK-2057: all writable state lives in Docker named volumes (taqasta_*).
# Read-only config/test mounts stay as bind mounts.
services:
db:
image: mysql:8.0
command: --default-authentication-plugin=caching_sha2_password --log-bin --binlog-expire-logs-seconds=172800
cap_add:
- SYS_NICE # CAP_SYS_NICE, fix error mbind: Operation not permitted
restart: "no"
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=${MW_DB_INSTALLDB_PASS:-mediawiki}
- MYSQL_DATABASE=${MW_DB_NAME:-mediawiki}
volumes:
- initdb:/docker-entrypoint-initdb.d
- taqasta_db_data:/var/lib/mysql
web:
image: ${TAQASTA_IMAGE:-taqasta-web}
build:
context: .
dockerfile: Dockerfile
restart: "no"
ports:
- "${PORT:-127.0.0.1:8000}:80"
depends_on:
- db
environment:
- MW_ADMIN_USER=${MW_ADMIN_USER:-admin}
- MW_ADMIN_PASS=${MW_ADMIN_PASS:-Passsw0rd!}
- MW_DB_NAME=${MW_DB_NAME:-mediawiki}
- MW_DB_INSTALLDB_USER=root
- MW_DB_INSTALLDB_PASS=${MW_DB_INSTALLDB_PASS:-mediawiki}
- MW_DB_USER=root
- MW_DB_PASS=${MW_DB_PASS:-mediawiki}
- MW_SITE_SERVER
- MW_SITE_NAME
- MW_SITE_LANG
- MW_DB_TYPE=${MW_DB_TYPE:-mysql}
- MW_SHOW_EXCEPTION_DETAILS
- PHP_UPLOAD_MAX_FILESIZE=500M
- PHP_POST_MAX_SIZE=500M
volumes:
- taqasta_mw_volume:/mediawiki
# Read-only config mount (WIK-2057): test settings stay a bind
- ./e2e/LocalSettings.php:/var/www/mediawiki/w/_settings/LocalSettings.php:ro
e2e:
build:
context: ./e2e
dockerfile: Dockerfile
depends_on:
- web
# Load `npx playwright show-report --host 0.0.0.0` to access reports
# on localhost:9323
ports:
- "9323:9323"
volumes:
# WIK-2057: read-only test inputs stay as bind mounts
- ./e2e/playwright.config.ts:/e2e/playwright.config.ts:ro
- ./e2e/tests/:/e2e/tests:ro
- ./e2e/fixtures/:/e2e/fixtures:ro
# WIK-2057: report output moved to a named volume; copy it back with:
# docker compose --profile e2elocal cp e2e:/e2e/playwright-report ./playwright-report
profiles:
- e2elocal
volumes:
taqasta_mw_volume:
name: taqasta_mw_volume
taqasta_db_data:
name: taqasta_db_data
initdb: