Skip to content

Commit f4135d9

Browse files
kanekane
authored andcommitted
fix: certbot use docker run instead of compose run to avoid entrypoint loop
1 parent ce5fd72 commit f4135d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/setup-ssl.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ docker compose -f docker-compose.prod.yml up -d nginx
5353
sleep 3
5454

5555
# 申请包含三个子域名的单张证书
56-
docker compose -f docker-compose.prod.yml run --rm certbot certonly \
56+
# 注意: 使用 docker run 而非 docker compose run,避免 service entrypoint 的无限续期循环阻塞
57+
docker run --rm \
58+
-v lead-mining-system_certbot_www:/var/www/certbot \
59+
-v lead-mining-system_certbot_certs:/etc/letsencrypt \
60+
--network lead-mining-net \
61+
certbot/certbot certonly \
5762
--webroot \
5863
--webroot-path /var/www/certbot \
5964
--email "kaneliu10@gmail.com" \

0 commit comments

Comments
 (0)