-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (54 loc) · 1.48 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.7"
services:
nginx-proxy:
image: jwilder/nginx-proxy:1.3-alpine
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
ports:
- 80:80
- 443:443
networks:
- default
- nginxproxynet
restart: always
volumes:
- ./conf.d:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
letsencrypt:
image: nginxproxy/acme-companion:2.2
depends_on:
- nginx-proxy
networks:
- default
- nginxproxynet
environment:
DEFAULT_EMAIL: ${DEFAULT_EMAIL:?Missing environment variable see readme}
restart: always
volumes:
- ./conf.d:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
conf:
driver: local
vhost:
driver: local
html:
driver: local
dhparam:
driver: local
certs:
driver: local
acme:
driver: local
networks:
nginxproxynet:
name: ${PROXY_NETWORK_NAME-nginxproxynet}