File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ tasks :
4+ build :
5+ label : docker:build
6+ desc : Build Docker images and cache dependencies
7+ cmds :
8+ - docker-compose build {{ .CLI_ARGS }}
9+
10+ up :
11+ label : docker:up
12+ desc : Start Docker containers in the background
13+ cmds :
14+ - docker-compose up --no-build --remove-orphans --detach {{ .CLI_ARGS }}
15+
16+ restart :
17+ label : docker:restart
18+ desc : Restart Docker containers
19+ cmds :
20+ - docker-compose restart {{ .CLI_ARGS }}
21+
22+ stop :
23+ label : docker:stop
24+ desc : Stop Docker containers
25+ cmds :
26+ - docker-compose stop {{ .CLI_ARGS }}
27+
28+ down :
29+ label : docker:down
30+ desc : Stop and remove Docker containers, networks
31+ cmds :
32+ - docker-compose down {{ .CLI_ARGS }}
33+
34+ exec :
35+ label : docker:exec
36+ desc : Run a command inside a running container
37+ cmds :
38+ - docker-compose exec {{ .CLI_ARGS }}
39+ interactive : true
40+
41+ logs :
42+ label : docker:logs
43+ desc : Stream the logs of all Docker containers
44+ cmds :
45+ - docker-compose logs -f {{ .CLI_ARGS }}
46+ interactive : true
You can’t perform that action at this time.
0 commit comments