-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.08 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
version: '3'
networks:
net:
driver: bridge
services:
nginx:
image: nginxproxy/nginx-proxy:alpine
env_file: .env
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- vhostd:/etc/nginx/vhost.d
- ./default_location:/etc/nginx/vhost.d/default_location
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
networks:
- net
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: ""
nginx-le:
image: nginxproxy/acme-companion
env_file: .env
#environment:
# make sure to set the DEFAULT_EMAIL for let's encrypt
# either in the .env file or in a docker-compose.override.yml
#DEFAULT_EMAIL: "[email protected]"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- ./acme.sh:/etc/acme.sh
links:
- nginx
networks:
- net
volumes:
certs: {}
vhostd: {}
html: {}