-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
116 lines (109 loc) · 2.68 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3.5'
services:
redis:
image: redis
container_name: wp1bot-redis
expose:
- 6379
restart: always
workers:
image: ghcr.io/openzim/wp1-workers:release
container_name: wp1bot-workers
volumes:
- /data/wp1bot/credentials.py:/usr/src/app/wp1/credentials.py
- /data/wp1bot/db/yoyo.ini:/usr/src/app/db/production/yoyo.ini
- /srv/log/wp1bot/:/var/log/wp1bot/
- /srv/data/wp1bot/:/var/data/wp1bot/
links:
- redis
logging:
driver: 'json-file'
options:
max-file: '2'
max-size: '10m'
restart: always
depends_on:
- redis
web:
image: ghcr.io/openzim/wp1-web:release
container_name: wp1bot-web
environment:
- VIRTUAL_HOST=api.wp1.openzim.org
- LETSENCRYPT_HOST=api.wp1.openzim.org
- HTTPS_METHOD=redirect
expose:
- 6555
volumes:
- /data/wp1bot/credentials.py:/usr/src/app/wp1/credentials.py
links:
- redis
logging:
driver: 'json-file'
options:
max-file: '2'
max-size: '10m'
restart: always
depends_on:
- redis
frontend:
image: ghcr.io/openzim/wp1-frontend:release
container_name: wp1bot-frontend
environment:
- VIRTUAL_HOST=wp1.openzim.org
- LETSENCRYPT_HOST=wp1.openzim.org
- HTTPS_METHOD=redirect
expose:
- 80
logging:
driver: 'json-file'
options:
max-file: '2'
max-size: '10m'
restart: always
depends_on:
- web
reverse-proxy:
image: jwilder/nginx-proxy
container_name: reverse-proxy
depends_on:
- web
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- '/data/certs:/etc/nginx/certs:ro'
- '/var/local/vhost.d:/etc/nginx/vhost.d'
- '/data/html:/usr/share/nginx/html'
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
ports:
- 80:80
- 443:443
logging:
driver: 'none'
options:
max-size: '10k'
restart: always
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
depends_on:
- reverse-proxy
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- '/data/certs:/etc/nginx/certs:rw'
- '/var/local/vhost.d:/etc/nginx/vhost.d'
- '/data/html:/usr/share/nginx/html'
logging:
driver: 'none'
options:
max-size: '10k'
restart: always
backup:
image: ghcr.io/kiwix/borg-backup:latest
env_file:
- /data/wp1bot/db/.wp1db_backup.env
restart: always
networks:
default:
name: openzim.org