-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.18 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
services:
redis:
image: redis:7-alpine
container_name: redis
ports:
- "6379:6379"
restart: unless-stopped
mem_limit: 128m
command: redis-server --appendonly yes
volumes:
- redis_data:/data
# 블루 배포
app-blue:
image: ddhi7/ccapp:latest #이미지는 동일 이미지 사용 : (깃허브 플젝 -> ccapp 이미지)
container_name: ccapp-blue
ports:
- "8081:8080"
env_file:
- .env
restart: unless-stopped
pull_policy: always
mem_limit: 400m
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
- redis
app-green:
#그린 배포
image: ddhi7/ccapp:latest
container_name: ccapp-green
ports:
- "8082:8080"
env_file:
- .env
restart: unless-stopped
pull_policy: always
mem_limit: 400m
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
- redis
volumes:
redis_data:
driver: local