-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 926 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
version: '3.8'
services:
nginx:
build: ./nginx
hostname: nginx
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/:rw
- letsencrypt-root:/var/www/letsencrypt:ro
- letsencrypt-certs:/etc/letsencrypt/:ro
ports:
- 80:80/tcp
- 443:443/tcp
restart: always
networks:
- default
certbot:
build: ./certbot
hostname: certbot
restart: always
environment:
CERTBOT_EMAIL: ${CERTBOT_EMAIL}
CERTBOT_DOMAINS: ${CERTBOT_DOMAINS}
networks:
- default
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/:rw
- letsencrypt-root:/var/www/letsencrypt:rw
- letsencrypt-certs:/etc/letsencrypt/:rw
depends_on:
- nginx
networks:
default:
volumes:
letsencrypt-root:
letsencrypt-certs: