forked from nginx-le/nginx-le
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (28 loc) · 866 Bytes
/
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
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
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