Files
docker/letsencrypt/Demo/SingleNode/docker-compose.yml
2025-11-01 21:18:29 +08:00

34 lines
864 B
YAML

services:
letsencrypt:
image: harbor.boyachain.cn:20443/general/letsencrypt:latest
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.boyachain.cn:20443/general/letsencrypt:latest
container_name: letsencrypt-wildcard
restart: "no"
stop_grace_period: 1m
environment:
DOMAINS: "*.xxx.com,*.yyy.com"
network_mode: host
volumes:
- type: bind
source: ./letsencrypt-wildcard/etc
target: /etc/letsencrypt
- type: bind
source: ./letsencrypt-wildcard/log
target: /var/log/letsencrypt