Skip to content

Commit

Permalink
fix: nginx 도 docker 화 시킴
Browse files Browse the repository at this point in the history
  • Loading branch information
82everywin committed Mar 1, 2025
1 parent 4648f45 commit 73aab90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,4 @@ jobs:
script: |
cd ~/backend
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/bookmile-app:latest
sudo docker-compose -f docker-compose.yml down
sudo docker-compose -f docker-compose.yml up --build -d
sudo docker-compose up -d --no-deps --build book-mile-app
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ services:
networks:
- app-network

nginx:
image: nginx:latest
container_name: book-mile-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro # Nginx 설정 파일을 컨테이너에 마운트
- ./nginx/ssl:/etc/letsencrypt/live/bookmile.site # SSL 인증서 마운트
depends_on:
- application
networks:
- app-network
restart: always # 컨테이너가 종료되면 자동 재시작

redis:
image: redis:latest
container_name: book-mile-redis
Expand Down

0 comments on commit 73aab90

Please sign in to comment.