-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.42 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
# This compose file is for develompent and build testing
version: '3'
services:
http:
image: ghcr.io/femiwiki/femiwiki:latest
command: caddy run
ports:
- 8080:8080
volumes:
- caddy:/etc/caddycerts
- ./development/Caddyfile:/srv/femiwiki.com/Caddyfile:ro
environment:
- CADDYPATH=/etc/caddycerts
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
logging:
options:
max-size: '100m'
fastcgi:
image: ghcr.io/femiwiki/femiwiki:latest
volumes:
# Mount secrets.php, LocalSettings.php and site-list.xml
- ./development:/a:ro
- l18n_cache:/tmp/cache
environment:
- MEDIAWIKI_SERVER=http://127.0.0.1:8080
- MEDIAWIKI_DEBUG_MODE=1
depends_on:
- mysql
- memcached
mysql:
image: mysql/mysql-server:8.0
command: --default-authentication-plugin=mysql_native_password
volumes:
- database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=localfemiwikipassword
- MYSQL_DATABASE=femiwiki
- MYSQL_USER=DB_USERNAME # secrets.php.example에 적힌 기본값
- MYSQL_PASSWORD=DB_PASSWORD # secrets.php.example에 적힌 기본값
networks:
default:
aliases:
- DB_HOSTNAME # secrets.php.example에 적힌 기본값
memcached:
image: memcached:1-alpine
volumes:
database:
caddy:
l18n_cache: