forked from Umc8th-Snack/Back-end
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.29 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
services:
nginx:
image: nginx:stable
container_name: nginx
ports:
- "80:80"
- "443:443"
depends_on:
- spring
- python
volumes:
- ./infra/nginx/conf.d:/etc/nginx/conf.d
- ./infra/certbot/conf:/etc/letsencrypt
- ./infra/certbot/www:/var/www/certbot
logging:
driver: awslogs
options:
awslogs-region: ap-northeast-2
awslogs-group: /nginx/access
awslogs-create-group: "true"
awslogs-stream: nginx
restart: unless-stopped
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./infra/certbot/conf:/etc/letsencrypt
- ./infra/certbot/www:/var/www/certbot
command: >
certonly --webroot --webroot-path=/var/www/certbot
--email liz0824@naver.com --agree-tos --no-eff-email
-d snacknews.site -d www.snacknews.site
restart: "no"
spring:
build:
context: .
dockerfile: src/Dockerfile
container_name: spring
expose:
- "8080"
depends_on:
- python
env_file:
- .env
restart: unless-stopped
python:
build:
context: ./python-nlp-service
dockerfile: Dockerfile
container_name: python
expose:
- "5000"
env_file:
- python-nlp-service/.env
restart: unless-stopped