forked from repair-wiki/wiki
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 2.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (72 loc) · 2.08 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
76
77
services:
crw-local:
build: .
volumes:
- ./data/images:/var/www/html/images
# Extensions with customizations, others are copied on image build
# Settings
- ./conf/LocalSettings.php:/var/www/html/LocalSettings.php
- ./conf/LocalSettings:/var/www/html/LocalSettings
# Semantics Configuration
- ./data/semantics:/var/www/html/semantics_config
# Nginx configuration
- ./conf/nginx.conf:/etc/nginx/sites-enabled/default
ports:
- "${WIKI_PORT}:80"
environment:
- WIKI_ENV=Dev
- DB_TYPE=mysql
- DB_SERVER=crw-local-db
- DB_NAME
- DB_USER
- DB_PASSWORD
- ADMIN_USER
- ADMIN_PASS
- FULL_URL=http://localhost:${WIKI_PORT}
- MEDIAWIKI_SECRET
- WIKI_CAPTCHA_KEY
- WIKI_CAPTCHA_SITE
- REDIS_SERVER=crw-local-cache:6379
- CITOID_URL=http://localhost:${CITOID_PORT}
- CLOUDFLARE_PURGE_ZONE_ID
- CLOUDFLARE_PURGE_TOKEN
depends_on:
crw-local-db:
condition: service_started
crw-local-cache:
condition: service_started
crw-local-db:
image: mariadb:lts
restart: always
ports:
- "${DB_PORT}:3306"
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- ./data/db:/var/lib/mysql
crw-local-cache:
image: redis:8-bookworm
restart: always
crw-citoid:
image: docker-registry.wikimedia.org/wikimedia/mediawiki-services-citoid:2025-10-28-154741-production
ports:
- "${CITOID_PORT}:1970"
crw-local-opensearch:
image: opensearchproject/opensearch:1.3.20
restart: always
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g # Set min and max JVM heap sizes to at least 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- crw-opensearch-data:/usr/share/opensearch/data
volumes:
crw-opensearch-data: