-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
101 lines (95 loc) · 1.88 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '2.4'
services:
nginx:
init: true
build:
context: nginx
volumes:
- tls_data:/web/tls/data
- kivy_doc:/web/doc:ro
- downloads:/web/downloads:ro
- blog_content:/web/blog
volumes_from:
- site:ro
links:
- blog
environment:
- BOOTSTRAP_TLS=false
ports:
- 80:80
- 443:443
logging: &logging
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
site:
init: true
build:
context: site
volumes:
- /web/site
logging:
<<: *logging
docs:
init: true
build:
context: .
dockerfile: docs/Dockerfile
volumes:
- kivy_doc:/web/doc
ports:
- 2457:2457
logging:
<<: *logging
downloads:
init: true
build:
context: .
dockerfile: downloads/Dockerfile
volumes:
- downloads:/web/downloads
ports:
- 2458:2458
environment:
- BACKUP_MODE=backup # none, backup, restore
- BASE_BACKUP_CRON=0 5 * * * # At 05:00.
env_file:
- .env/envfile/downloads-s3-backup
logging:
<<: *logging
blog:
init: true
build:
context: blog
volumes:
- blog_content:/web/blog
links:
- blog_mysql
environment:
- BACKUP_MODE=backup # none, backup, restore
- BASE_BACKUP_CRON=0 6 * * Sun # At 06:00 on Sun.
env_file:
- .env/envfile/blog-s3-backup
logging:
<<: *logging
blog_mysql:
init: true
build:
context: mysql
volumes:
- blog_mysql_data:/var/lib/mysql
environment:
- BACKUP_MODE=backup # none, backup, restore
- BASE_BACKUP_CRON=0 6 * * Sun # At 06:00 on Sun.
env_file:
- .env/envfile/blog-mysql
- .env/envfile/blog-s3-backup
logging:
<<: *logging
volumes:
blog_content:
blog_mysql_data:
downloads:
kivy_doc:
tls_data: