From 6195c748ec325cdf1fd01f02c8b2e36a5410fe85 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 29 Aug 2022 14:01:11 +0300 Subject: [PATCH] certbot --- .deploy/deploy-dev.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index 22713dd..4f7367c 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -5,6 +5,9 @@ services: image: mathwave/sprint-repo:sprint-infra-nginx-dev ports: - "80:80" + - "443:443" + volumes: + - certs:/etc/letsencrypt deploy: mode: replicated replicas: 1 @@ -99,6 +102,24 @@ services: parallelism: 1 order: start-first + certbot: + image: certbot/certbot + volumes: + - certs:/etc/letsencrypt + command: certonly --email emmtvv@gmail.com --agree-tos --no-eff-email --staging -d "*.develop.sprinthub.ru" + deploy: + mode: replicated + placement: + constraints: [node.role == manager] + restart_policy: + condition: any + delay: 720h # each month + update_config: + parallelism: 1 + order: start-first + volumes: minio_data: + driver: local + certs: driver: local \ No newline at end of file