-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (45 loc) · 1 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
---
services:
nginx-proxy:
build: .
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
ports:
- 80:80
- 443:443
volumes:
- cert_data:/etc/nginx/certs
- vhost_data:/etc/nginx/vhost.d
- html_data:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- default
- nginx-bridge
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
restart: always
nginx-proxy-acme:
image: nginxproxy/acme-companion:2.3
volumes:
- cert_data:/etc/nginx/certs
- vhost_data:/etc/nginx/vhost.d
- html_data:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
restart: always
volumes:
vhost_data:
cert_data:
html_data:
networks:
nginx-bridge:
name: nginx-bridge