Skip to content

Commit

Permalink
fix: nginx 및 cerbot 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Mar 4, 2024
1 parent 93adfa3 commit ab1655e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ services: # 컨테이너 설정
nginx:
container_name: nginx-dev
image: nginx:latest
restart: on-failure
restart: always
volumes:
- ./my-nginx.conf:/etc/nginx/conf.d/default.conf
- ./my-nginx.conf:/etc/nginx/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
ports:
- 80:80
- 443:443
depends_on:
- certbot

certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
Expand Down

0 comments on commit ab1655e

Please sign in to comment.