-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.83 KB
/
docker-compose.yml
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
version: '3.4'
networks:
reverseproxy:
driver: bridge
services:
nginx:
container_name: nginx
image: nginx
restart: always
ports:
- 80:80
- 443:443
networks:
- reverseproxy
volumes:
#docker-compose.yml과 같은 레벨에 둔 nginx.conf를 mount.
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ../certbot/conf:/etc/letsencrypt # 추가
- ../certbot/www:/var/www/certbot # 추가
- ../../etc/letsencrypt/live/khumon-edu.kro.kr/fullchain.pem:/etc/letsencrypt/live/khumon-edu.kro.kr/fullchain.pem
- ../../etc/letsencrypt/live/khumon-edu.kro.kr/privkey.pem:/etc/letsencrypt/live/khumon-edu.kro.kr/privkey.pem
- ../../etc/letsencrypt/ssl-dhparams.pem:/etc/letsencrypt/ssl-dhparams.pem
- ../../etc/letsencrypt/options-ssl-nginx.conf:/etc/letsencrypt/options-ssl-nginx.conf
depends_on:
- khumon
# certbot:
# container_name: certbot
# image: certbot/certbot
# restart: unless-stopped
# volumes:
# - ../certbot/conf:/etc/letsencrypt # 추가
# - ../certbot/www:/var/www/certbot # 추가
# - ../../etc/letsencrypt/live/khumon-edu.kro.kr/fullchain.pem:/etc/letsencrypt/live/khumon-edu.kro.kr/fullchain.pem
# - ../../etc/letsencrypt/live/khumon-edu.kro.kr/privkey.pem:/etc/letsencrypt/live/khumon-edu.kro.kr/privkey.pem
# - ../../etc/letsencrypt/ssl-dhparams.pem:/etc/letsencrypt/ssl-dhparams.pem
# - ../../etc/letsencrypt/options-ssl-nginx.conf:/etc/letsencrypt/options-ssl-nginx.conf
# networks:
# - reverseproxy
# depends_on:
# - nginx
redis:
container_name: redis
image: redis
ports:
- 6379:6379
networks:
- reverseproxy
khumon:
container_name: khumon
image: chy0310/khumon
expose:
- 8000
networks:
- reverseproxy
depends_on:
- redis