Skip to content

Commit

Permalink
fix: docker-compose.dev.yml ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Mar 4, 2024
1 parent ab1655e commit dc0f20a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ services: # ์ปจํ…Œ์ด๋„ˆ ์„ค์ •
nginx:
container_name: nginx-dev
image: nginx:latest
restart: always
volumes:
- ./my-nginx.conf:/etc/nginx/nginx/nginx.conf
- ./my-nginx.conf:/etc/nginx/conf.d/default.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;"'''
restart: always
ports:
- 80:80
- 443:443
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''


certbot:
image: certbot/certbot
Expand All @@ -34,4 +35,4 @@ services: # ์ปจํ…Œ์ด๋„ˆ ์„ค์ •
container_name: redis-dev
image: redis
ports:
- 6379:6379
- 6379:6379

0 comments on commit dc0f20a

Please sign in to comment.