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