Skip to content

Commit c796365

Browse files
committed
feat: 인증서 발급용 init compose 작성
1 parent ad7a9bf commit c796365

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

compose.init.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: "3.8"
2+
3+
services:
4+
nginx:
5+
image: nginx:alpine
6+
restart: always
7+
ports:
8+
- "80:80"
9+
volumes:
10+
- ./services/nginx/conf.d/prod_nginx_init.conf:/etc/nginx/conf.d/default.conf
11+
- ./data/certbot/www:/var/www/certbot
12+
networks:
13+
- frontend
14+
15+
certbot:
16+
image: certbot/certbot:latest
17+
volumes:
18+
- ./data/certbot/conf:/etc/letsencrypt
19+
- ./data/certbot/www:/var/www/certbot
20+
- ./data/certbot/log:/var/log/letsencrypt
21+
command: >
22+
certonly --webroot
23+
--webroot-path=/var/www/certbot
24+
25+
--agree-tos
26+
--no-eff-email
27+
-d octodocs.com
28+
-d www.octodocs.com
29+
30+
networks:
31+
frontend:
32+
driver: bridge

0 commit comments

Comments
 (0)