forked from nginx-le/nginx-le
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 1.18 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
version: '2'
services:
nginx:
build: .
image: umputun/nginx-le:latest
hostname: nginx
restart: always
container_name: nginx
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
- ./etc/ssl:/etc/nginx/ssl
- ./etc/service-example.conf:/etc/nginx/service.conf
# - ./etc/service-example-2.conf:/etc/nginx/service2.conf # more services, should be service*.conf
# - ./etc/stream-example-2.conf:/etc/nginx/stream2.conf # more streams, should be stream*.conf
# - ./etc/conf.d:/etc/nginx/conf.d-le # configuration folder, all files from it will be added
# - ./etc/stream.conf:/etc/nginx/stream.conf.d-le # streams configuration folder, all files from it will be added
ports:
- "80:80"
- "443:443"
environment:
- TZ=America/Chicago
- LETSENCRYPT=true
- LE_FQDN=www.example.com
#- SSL_CERT=le-crt.pem
#- SSL_KEY=le-key.pem
#- SSL_CHAIN_CERT=le-chain-crt.pem