-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (49 loc) · 1.31 KB
/
compose.yml
File metadata and controls
52 lines (49 loc) · 1.31 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
services:
app:
image: 958533309301.dkr.ecr.ap-northeast-2.amazonaws.com/checkmo
container_name: checkmo-app
env_file:
- .env
environment:
SPRING_PROFILES_ACTIVE: aladin,jwt,mail,prod,redis,oauth2,s3
TZ: Asia/Seoul
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
networks:
- app-network
nginx:
image: nginx:alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
# nginx 설정 파일 저장할 볼륨
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
# GitHub Actions에서 전송할 nginx 설정 파일들
- ./nginx/conf.d:/etc/nginx/conf.d:ro
# SSL 인증서 및 인증용 파일 공유
- /home/ubuntu/certbot/conf:/etc/letsencrypt
- /home/ubuntu/certbot/www:/var/www/certbot
restart: unless-stopped
networks:
- app-network
depends_on:
app:
condition: service_healthy
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- /home/ubuntu/certbot/conf:/etc/letsencrypt
- /home/ubuntu/certbot/www:/var/www/certbot
networks:
- app-network
networks:
app-network:
driver: bridge