From 37d47aa39570a6312d17ae4ebdd00aefc47dca8a Mon Sep 17 00:00:00 2001 From: minjungw00 Date: Sun, 17 Nov 2024 20:00:44 +0900 Subject: [PATCH] =?UTF-8?q?build:=20docker=20compose=EC=97=90=20certbot=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #136 --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 620afd18..8732b870 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,11 +25,24 @@ services: dockerfile: ./nginx/Dockerfile ports: - "80:80" + - "443:443" volumes: - ./client/dist:/usr/share/nginx/html + - ./certbot/conf:/etc/letsencrypt # Certbot 인증서 파일 공유 + - ./certbot/www:/var/www/certbot # Certbot 웹 루트 디렉토리 공유 + - ./nginx/conf.d:/etc/nginx/conf.d # Nginx 설정 공유 depends_on: - frontend - backend + - certbot + + certbot: + image: certbot/certbot + container_name: certbot + volumes: + - ./certbot/conf:/etc/letsencrypt # 인증서 저장 경로 + - ./certbot/www:/var/www/certbot # 인증 과정에 필요한 웹 루트 경로 + entrypoint: /bin/sh -c 'trap exit TERM; while :; do sleep 1; done' networks: app-network: