Skip to content

Commit

Permalink
feat: nginx 및 certbot 컨테이너 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Mar 4, 2024
1 parent 1ad6e4c commit 1ccde59
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ccde59

Please sign in to comment.