From 1ccde5934b0d88e973815e8d168331f794ca5c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A4=80=EC=8D=A8=ED=81=AC?= Date: Mon, 4 Mar 2024 16:25:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20nginx=20=EB=B0=8F=20certbot=20=EC=BB=A8?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=84=88=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.dev.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index ec7d734b..b804b0bc 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -9,6 +9,25 @@ services: # 컨테이너 설정 ports: - 8000:8000 + nginx: + image: nginx:latest + volumes: + - ./my-nginx.conf:/etc/nginx/conf.d/default.conf + - ./data/certbot/conf:/etc/letsencrypt + - ./data/certbot/www:/var/www/certbot + ports: + - 80:80 + - 443:443 + depends_on: + - certbot + + certbot: + image: certbot/certbot + volumes: + - ./data/certbot/conf:/etc/letsencrypt + - ./data/certbot/www:/var/www/certbot + entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" + redis: container_name: redis-dev image: redis