-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (53 loc) · 1.84 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
version: '3'
services:
web:
container_name: web
image: kwonjiyun/onezeromate-web
expose:
- 8080
ports:
- 8080:8080
#redis:
#image: kwonjiyun/redis
#container_name: ubuntu-redis-1
#hostname: ubuntu-redis-1
#labels:
# - "name=ubuntu-redis-1"
#- "mode=standalone"
#ports:
#- 6379:6379
#volumes:
#- /config/redis.conf:/tmp/redis.conf
#command: [ "redis-server", "/tmp/redis.conf" ]
nginx:
container_name: nginx
image: kwonjiyun/onezeromate
ports:
- 80:80
- 443:443
volumes:
- ./spring:/usr/src/app
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/log:/var/log/nginx
#- ./certbot/www:/var/www/certbot/:ro # ssl 인증 시 접근 경로
#- ./certbot/www:/var/www/certbot/:ro # ssl 인증 시 접근 경로
#- ./certbot/conf/:/etc/nginx/ssl/:ro # ssl 인증서 생성 위치
# - ./certbot/conf/:/etc/nginx/ssl/ # ssl 인증서 생성 위치 (read-only option 제거)
#- ./certbot/conf:/etc/letsencrypt # SSL certificates are accessible here
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- web
certbot:
image: certbot/certbot:latest
container_name: certbot_onezeromate
# command: certonly --webroot --webroot-path=/var/www/certbot --email [email protected] --agree-tos --no-eff-email -d onezeromate.com
volumes:
#- ./certbot/www/:/var/www/certbot:rw # ssl 인증 시 접근 경로
#- ./certbot/conf/:/etc/nginx/ssl/ # ssl 인증서 생성 위치 (변경)
#- ./certbot/log/:/var/log/letsencrypt:rw # 로그 위치
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- nginx