-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
84 lines (79 loc) · 2.53 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
version: '3.7'
# --- Canasta Stack for Docker Compose ---
#
# !!! DO NOT EDIT THIS FILE !!!
# ANY EDITS YOU MAKE HERE WILL BE OVERRIDDEN ON FUTURE UPDATES OF THE CANASTA STACK FOR DOCKER COMPOSE
# THIS FILE SHOULD ONLY BE EDITED BY THE DEVELOPERS OF CANASTA
#
# Only edits to docker-compose.override.yml are officially supported by Canasta.
services:
db:
image: docker.io/library/mysql:8.0
command: --default-authentication-plugin=mysql_native_password --expire_logs_days=3 --secure-file-priv=""
cap_add:
- SYS_NICE # CAP_SYS_NICE, fix error mbind: Operation not permitted
restart: unless-stopped
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD:-mediawiki}
- MYSQL_DATABASE=mediawiki
volumes:
- ./_initdb:/docker-entrypoint-initdb.d
- mysql-data-volume:/var/lib/mysql
- ./my.cnf:/etc/my.cnf
web:
image: ghcr.io/canastawiki/canasta:latest
restart: unless-stopped
extra_hosts:
- "gateway.docker.internal:host-gateway"
depends_on:
- db
- elasticsearch
environment:
# Sourced from .env
- MW_SITE_SERVER=${MW_SITE_SERVER:-https://localhost}
- PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE:-10M}
- PHP_POST_MAX_SIZE=${PHP_UPLOAD_MAX_FILESIZE:-10M}
- PHP_MAX_INPUT_VARS=${PHP_MAX_INPUT_VARS:-1000}
- MW_SITEMAP_SUBDIR
- MW_SITEMAP_IDENTIFIER
volumes:
- ./extensions:/var/www/mediawiki/w/user-extensions
- ./skins:/var/www/mediawiki/w/user-skins
- ./config:/mediawiki/config
- ./images:/mediawiki/images
- sitemap:/mediawiki/sitemap
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
restart: unless-stopped
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
caddy:
image: docker.io/library/caddy:2.4.6-alpine
restart: unless-stopped
entrypoint: caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
environment:
- MW_SITE_FQDN=${MW_SITE_FQDN:-localhost}
volumes:
- caddy-data:/data
- ./config/Caddyfile:/etc/caddy/Caddyfile
varnish:
image: docker.io/library/varnish:7.0.2-alpine
restart: unless-stopped
volumes:
- ./config/default.vcl:/etc/varnish/default.vcl:ro
tmpfs:
- /var/lib/varnish:exec
volumes:
mysql-data-volume:
elasticsearch:
caddy-data:
sitemap: