-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1023 Bytes
/
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
version: '3'
services:
certbot:
image: ebonetti/certbot-integration
container_name: certbot
restart: unless-stopped
environment:
- DOMAIN=${DOMAIN}
- EMAIL=${EMAIL}
volumes:
- website-data:/var/www/:ro
- certificates:/etc/letsencrypt/
- acme-challenge:/var/www-acme-challenge/
logging:
driver: "json-file"
options:
max-size: "100k"
max-file: "10"
nginx:
image: ebonetti/tatic
container_name: nginx
restart: unless-stopped
environment:
- DOMAIN=${DOMAIN}
- CERT=/etc/letsencrypt/live/${DOMAIN}
volumes:
- website-data:/var/www/:ro
- certificates:/etc/letsencrypt/:ro
- acme-challenge:/var/www-acme-challenge/:ro
ports:
- 80:80
- 443:443
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
volumes:
certificates:
acme-challenge:
website-data:
driver: local
driver_opts:
device: ${PATH2DATA}
o: bind