forked from RichardKnop/nginx-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-letsencrypt-ssl.yml
41 lines (34 loc) · 1.18 KB
/
docker-compose-letsencrypt-ssl.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
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /home/core/data/nginx-proxy/certs:/etc/nginx/certs:ro
- /home/core/data/nginx-proxy/vhost.d:/etc/nginx/vhost.d:rw
# - /etc/nginx/vhost.d
# - /usr/share/nginx/html
- /home/core/data/nginx-proxy/html:/usr/share/nginx/html:rw
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
# in case of any issues comment "/home/core/data/nginx-proxy/vhost.d:/etc/nginx/vhost.d" and "/home/core/data/nginx-proxy/html:/usr/share/nginx/html" from above volumes block
letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-nginx-proxy-companion
volumes:
- /home/core/data/nginx-proxy/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- nginx-proxy
# whoami:
# image: jwilder/whoami
# environment:
# - VIRTUAL_HOST=whoami.local
networks:
default:
external:
name: nginx-proxy-bridge-network