diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eef75d93..d8f756e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,11 +23,6 @@ jobs: run: | docker-compose up -d --build - # 3. 인증서 갱신 및 Nginx 재시작 - - name: Renew SSL Certificates - run: | - ./renew_certificates.sh - - # 4. Clean up Old Images + # 3. Clean up Old Images - name: Remove Dangling Images run: docker image prune -f diff --git a/docker-compose.yml b/docker-compose.yml index 68fde014..c4f9f03d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,22 +28,10 @@ services: - "443:443" volumes: - ./client/dist:/usr/share/nginx/html - - ./certbot/www:/var/www/certbot - - certbot-etc:/etc/letsencrypt:ro + - /etc/letsencrypt:/etc/letsencrypt:ro depends_on: - frontend - backend - - certbot - - certbot: - image: certbot/certbot - volumes: - - certbot-etc:/etc/letsencrypt - - ./certbot/www:/var/www/certbot - command: certonly --webroot --webroot-path=/var/www/certbot --email minjungw00@naver.com --agree-tos --no-eff-email -d nocta.site -d www.nocta.site - -volumes: - certbot-etc: networks: app-network: diff --git a/renew_certificates.sh b/renew_certificates.sh deleted file mode 100755 index 2bd0c5f9..00000000 --- a/renew_certificates.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -docker-compose run certbot renew --webroot --webroot-path=/var/www/certbot -docker-compose exec nginx nginx -s reload