-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
40 lines (36 loc) · 1.05 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
40 lines (36 loc) · 1.05 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
version: "3.8"
# Integration test environment for MediaWiki MCP Server
# Usage:
# docker-compose -f docker-compose.test.yml up -d
# go test -tags=integration ./wiki/...
# docker-compose -f docker-compose.test.yml down -v
services:
mediawiki:
image: mediawiki:1.42
container_name: mediawiki-test
ports:
- "8080:80"
environment:
MEDIAWIKI_DB_TYPE: sqlite
MEDIAWIKI_DB_NAME: mediawiki
MEDIAWIKI_SITE_NAME: TestWiki
MEDIAWIKI_SITE_SERVER: http://localhost:8080
MEDIAWIKI_SCRIPT_PATH: ""
MEDIAWIKI_ADMIN_USER: Admin
MEDIAWIKI_ADMIN_PASS: adminpassword123
volumes:
- mediawiki-data:/var/www/html/images
- ./scripts/LocalSettings.php:/var/www/html/LocalSettings.php:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/api.php?action=query&meta=siteinfo&format=json"]
interval: 10s
timeout: 5s
retries: 10
start_period: 60s
networks:
- mediawiki-test-network
networks:
mediawiki-test-network:
driver: bridge
volumes:
mediawiki-data: