-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (55 loc) ยท 1.66 KB
/
docker-compose.yml
File metadata and controls
64 lines (55 loc) ยท 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.8"
services:
# frontend:
# build:
# # ์ด๋์์ ๋์ปค๋ฅผ ์์ํ ๊ฒ์ธ๊ฐ
# context: ./front-end
# dockerfile: Dockerfile
# image: frontend
# restart: always
# ######
# volumes:
# - /app/node_modules #๋์ปค /app/node_modules๋ ๋งตํ์ ๋ฐ๋ก ์ํด์ฃผ๊ฒ ๋ค.
# - ./:/app # ๋ก์ปฌ์ ์๋ ๋ชจ๋ ํ์ผ์ ๋งตํ
# ########
# ports:
# # - 3000:3000
# - 3001:3001
# #######
# stdin_open: true
# environment:
# - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
# networks:
# - app-network
nginx:
restart: always
container_name: nginx
build:
context: ./nginx
# context: ./front-end
dockerfile: Dockerfile
#
volumes:
# - ./nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/data:/var/www/certbot
ports:
- "80:80"
- "443:443"
#
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
# networks:
# - app-network
certbot:
image: certbot/certbot:latest
container_name: certbot
# ๋ฐ๊ธํ์ ์ปค๋งจ๋ ์๋ ์ฌ๋ฐ๊ธ์ฉ ์ปค๋งจ๋๋ก ๋ฐ๊ฟ์ค๋ค.
# command: certonly --webroot --webroot-path=/var/www/certbot --email [email protected] --agree-tos --no-eff-email -d rough-code.com
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/data:/var/www/certbot
- ./data/certbot/logs:/var/log/letsencrypt
# networks:
# app-network:
# driver: bridge