forked from ZhiYiDai/remote-control
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
55 lines (51 loc) · 1.49 KB
/
docker-compose.yaml
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
version: '3'
services:
certbot:
image: certbot/certbot:v1.4.0
depends_on:
- nginx
volumes:
- ./deploy/dist/ssl:/etc/letsencrypt
- www-certbot-root:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 1d & wait $${!}; done;'"
logging:
driver: "json-file"
options:
compress: "true"
max-size: "20m"
max-file: "5"
nginx:
image: nginx:1.18-alpine
# depends_on:
# - janus
network_mode: host
volumes:
- ./deploy/dist/conf/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./deploy/dist/conf/nginx/dhparams.pem:/etc/nginx/dhparams.pem
- ./deploy/dist/ssl:/etc/letsencrypt
- www-certbot-root:/var/www/certbot
- ./deploy/dist/web-admin:/var/www/web-admin/html
restart: unless-stopped
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
logging:
driver: "json-file"
options:
compress: "true"
max-size: "20m"
max-file: "5"
janus:
image: headwindmdm/janus-gateway:0.10.7
volumes:
- ./deploy/dist/conf/janus:/usr/local/etc/janus
- ./deploy/dist/ssl:/etc/letsencrypt
network_mode: host
restart: unless-stopped
logging:
driver: "json-file"
options:
compress: "true"
max-size: "20m"
max-file: "5"
volumes:
# WWW certbot root directory, eg. for ACME challenge (FROM nginx FOR certbot)
www-certbot-root: