-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTaskfile.yml
More file actions
84 lines (67 loc) · 1.97 KB
/
Taskfile.yml
File metadata and controls
84 lines (67 loc) · 1.97 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3"
vars:
GREETING: Hello, World!
RED: \033[31m
GREEN: \033[32m
YELLOW: \033[33m
BLUE: \033[34m
RESET: \033[0m
tasks:
default:
desc: 도움말
cmd: task --list-all
silent: true
front:
desc: 프론트 UI 개발 서버 실행
cmd: docker compose -f compose.local.yaml up --build frontend
ai:
desc: AI 서버 실행
cmd: docker compose -f compose.local.yaml up --build ai
back:
desc: 백엔드 서버 실행
cmd: docker compose -f compose.local.yaml up --build backend
local:
preconditions:
- test -f compose.local.yaml
desc: 통합 개발 환경 실행
cmds:
- docker compose -f compose.local.yaml up --build
dev:
desc: 개발 환경 실행 (레거시)
silent: true
cmds:
- echo -e "{{.RED}} 이전버전 명령어입니다. {{.YELLOW}}task local{{.RED}} 명령어로 실행해주세요. {{.RESET}}" && sleep 10
- task local
local-down:
desc: 통합 개발 환경 중지
cmd: docker compose -f compose.local.yaml down
prod:
desc: 프로덕션 환경 실행
cmd: docker compose -f compose.prod.yaml up
prod-down:
desc: 프로덕션 환경 중지
cmd: docker compose -f compose.prod.yaml down
clean:
desc: 컨테이너 삭제, 네트워크 삭제, 볼륨 삭제, 이미지 삭제, 빌드 캐시 삭제
cmd: docker system prune -a
deploy:
desc: 애플리케이션 배포
cmd: sh -c ./deploy.sh
db:
desc: 데이터베이스 초기화
dir: database
cmds:
- sh -c ./init.sh
- docker compose -f compose.yaml up -d
moni:
desc: 모니터링 환경 실행
cmd: docker compose -f compose.monitoring.yaml up
moni-down:
desc: 모니터링 환경 중지
cmd: docker compose -f compose.monitoring.yaml down
metric:
desc: 메트릭 환경 실행
cmd: docker compose -f compose.metric.yaml up
metric-down:
desc: 메트릭 환경 중지
cmd: docker compose -f compose.metric.yaml down