forked from nginx-le/nginx-le
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 1.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
version: '2'
networks:
ingress:
external: true
services:
nginx:
build: .
image: umputun/nginx-le:latest
hostname: nginx
restart: unless-stopped
container_name: nginx
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
- ./etc/ssl:/etc/nginx/ssl
- ./etc/service.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=UTC
- LETSENCRYPT=true
- LE_FQDN=rissner.com,rissner.org,rissner.net,rissner.eu,www.rissner.com,www.rissner.org,www.rissner.eu,mail.rissner.com,mail.rissner.org,mail.rissner.net,mail.rissner.eu,pinky.rissner.net
#- SSL_CERT=le-crt.pem
#- SSL_KEY=le-key.pem
#- SSL_CHAIN_CERT=le-chain-crt.pem
networks:
- default
- ingress