Skip to content

Commit

Permalink
build: docker compose에 certbot 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minjungw00 committed Nov 17, 2024
1 parent 29cde25 commit 37d47aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 37d47aa

Please sign in to comment.