-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (57 loc) · 1.62 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
version: '2.1'
services:
wiki:
#image: simplyintricate/mediawiki:1.28
build:
context: build/wiki
depends_on:
initdb:
condition: service_healthy
volumes:
- /data/docker-wiki-family/images/:/usr/share/nginx/html/images
- /data/docker-wiki-family/extensions/:/tmp/extensions
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- SMTP_HOST=smtp.server.com
- SMTP_PORT=8888
- SMTP_USERNAME=username
- SMTP_PASSWORD=password
- NGINX_HOST=123.123.123.123
# NGINX_PORT should be the same as the left-hand side
# of published port, below, or 80 by default
- NGINX_PORT=8001
# Mediawiki secret: https://www.mediawiki.org/wiki/Manual:$wgSecretKey
- MW_SECRET=abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz01
#ports:
# Left-hand side should be compatible with NGINX_PORT above
# Right-hand side should stay "80"
#- "8001:80"
db:
#image: mysql:8
build:
context: build/db
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
#volumes:
# - /path/to/local/db:/var/lib/mysql
initdb:
#image: mysql:8
build:
context: build/initdb
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
depends_on:
db:
condition: service_healthy
bkpdb:
# https://github.com/fradelg/docker-mysql-cron-backup/
image: fradelg/mysql-cron-backup:latest
environment:
- MYSQL_HOST=db
- MYSQL_USER=admin
- MYSQL_PASS=password
- INIT_BACKUP=true
# weekly backup
- CRON_TIME=0 0 * * 1
#volumes:
# - /path/to/backup:/backup