36 lines
838 B
YAML
36 lines
838 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
letsencrypt:
|
|
image: harbor.colben.cn/general/letsencrypt
|
|
container_name: letsencrypt
|
|
restart: "no"
|
|
stop_grace_period: 1m
|
|
environment:
|
|
DOMAINS: x1.xx.com,x2.xx.com
|
|
network_mode: host
|
|
volumes:
|
|
- type: bind
|
|
source: ./letsencrypt/etc
|
|
target: /etc/letsencrypt
|
|
- type: bind
|
|
source: ./letsencrypt/log
|
|
target: /var/log/letsencrypt
|
|
|
|
letsencrypt-wildcard:
|
|
image: harbor.colben.cn/general/letsencrypt
|
|
container_name: letsencrypt-wildcard
|
|
restart: "no"
|
|
stop_grace_period: 1m
|
|
environment:
|
|
DOMAINS: "*.xxx.com"
|
|
network_mode: host
|
|
volumes:
|
|
- type: bind
|
|
source: ./letsencrypt-wildcard/etc
|
|
target: /etc/letsencrypt
|
|
- type: bind
|
|
source: ./letsencrypt-wildcard/log
|
|
target: /var/log/letsencrypt
|
|
|