-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi-docker-compose-proxy.yml
56 lines (52 loc) · 1.31 KB
/
multi-docker-compose-proxy.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
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- proxycerts:/etc/nginx/certs
- proxyvhost:/etc/nginx/vhost.d
- proxyhtml:/usr/share/nginx/html
- proxydhparam:/etc/nginx/dhparam
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/bms.conf:/etc/nginx/conf.d/bms.conf:ro
- ./nginx/default_location:/etc/nginx/vhost.d/default_location:ro
networks:
- bmsnet
logging:
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
restart: always
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
- DEFAULT_EMAIL=${BMS_SSL_EMAIL:[email protected]}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxycerts:/etc/nginx/certs
- proxyvhost:/etc/nginx/vhost.d
- proxydhparam:/etc/nginx/dhparam
- proxyhtml:/usr/share/nginx/html
networks:
- bmsnet
logging:
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
volumes:
proxycerts:
proxyvhost:
proxyhtml:
proxydhparam:
networks:
bmsnet:
driver: bridge