-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (35 loc) · 776 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
43 lines (35 loc) · 776 Bytes
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
version: '3'
vars:
DC: docker compose -f docker-compose.yml
tasks:
cmd:
desc: Show the docker compose command
cmds:
- echo 'Docker compose command:'
- echo '{{.DC}}'
up:
desc: Start the CodyColor services
cmds:
- '{{.DC}} up -d website server'
- '{{.DC}} ps'
rebuild:
desc: Rebuild and restart the CodyColor client and server
cmds:
- '{{.DC}} build website server'
- '{{.DC}} up -d --force-recreate'
ps:
desc: Show running containers
cmds:
- '{{.DC}} ps'
rs:
desc: Restart all services
cmds:
- '{{.DC}} restart'
stop:
desc: Stop all services
cmds:
- '{{.DC}} stop'
rm:
desc: Remove all containers (force, stop)
cmds:
- '{{.DC}} rm -fs'