-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
59 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
59
services:
app:
build:
context: .
dockerfile: Dockerfile
image: hyetaekon:latest
container_name: hyetaekon
ports:
- "8080:8080"
restart: always
env_file:
- ./.env
environment:
SPRING_PROFILES_ACTIVE: dev,s3Bucket
TZ: Asia/Seoul
volumes:
- ./logs:/app/logs # 로그 마운트
depends_on:
redis:
condition: service_healthy
networks:
- app-network
redis:
image: redis:latest
container_name: hyetaekon-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data # 데이터 지속성을 위한 볼륨 추가
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- app-network
nginx:
image: nginx:latest
container_name: hyetaekon-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- ./nginx/logs:/var/log/nginx
depends_on:
- app
networks:
- app-network
networks:
app-network:
name: hyetaekon-network