-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 953 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
### NGINX-PROXY
###
### Author: Sebastian Plocek
### https://github.com/sebastian13/docker-compose-nginx-proxy
services:
nginx-proxy:
image: nginx
container_name: nginx-proxy
restart: always
ports:
- "443:443"
- "80:80"
volumes:
- ./www:/var/www:ro
- ./conf.d:/etc/nginx/conf.d:ro
- ./ssl:/etc/nginx/ssl:ro
- ./snippets:/etc/nginx/snippets:ro
- ./protect:/etc/nginx/protect:ro
# Let's Encrypt / Certbot
# Check README.md to know how to issue new certs.
certbot:
image: certbot/certbot
container_name: certbot
depends_on:
- nginx-proxy
volumes:
- ./ssl:/etc/letsencrypt
- ./ssl-log:/var/log/letsencrypt
- ./www/.well-known:/var/www/.well-known
profiles:
- certbot
command: [
"renew",
]
# Use the same external network in $upstream containers.
networks:
default:
name: www-network
external: true