blob: f6879ffa3aaff7177a8e125b2f1b57fe710e73e5 (
plain)
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
|
version: '3'
services:
proxy:
image: nginx
volumes:
- ./nginx/proxy.conf:/etc/nginx/conf.d/default.conf
- ./letsencrypt:/etc/letsencrypt
ports:
- 443:443
environment:
TZ: Asia/Tokyo
restart: always
acme-challenge:
image: nginx
volumes:
- ./nginx/acme-challenge.conf:/etc/nginx/conf.d/default.conf
- ./acme-challenge:/var/letsencrypt/www
ports:
- 80:80
environment:
TZ: Asia/Tokyo
command: "/bin/sh -c 'while :; do sleep 36h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
restart: always
certbot:
image: certbot/certbot
volumes:
- ./acme-challenge:/var/letsencrypt/www
- ./letsencrypt:/etc/letsencrypt
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
restart: always
networks:
default:
external:
name: nsfisis_dev_shared
|