-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Taskfile.dist.yml
46 lines (39 loc) · 1.16 KB
/
Taskfile.dist.yml
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
version: '3'
tasks:
build:
label: docker:build
desc: Build Docker images and cache dependencies
cmds:
- docker-compose build {{ .CLI_ARGS }}
up:
label: docker:up
desc: Start Docker containers in the background
cmds:
- docker-compose up --no-build --remove-orphans --detach {{ .CLI_ARGS }}
restart:
label: docker:restart
desc: Restart Docker containers
cmds:
- docker-compose restart {{ .CLI_ARGS }}
stop:
label: docker:stop
desc: Stop Docker containers
cmds:
- docker-compose stop {{ .CLI_ARGS }}
down:
label: docker:down
desc: Stop and remove Docker containers, networks
cmds:
- docker-compose down {{ .CLI_ARGS }}
exec:
label: docker:exec
desc: Run a command inside a running container
cmds:
- docker-compose exec {{ .CLI_ARGS }}
interactive: true
logs:
label: docker:logs
desc: Stream the logs of all Docker containers
cmds:
- docker-compose logs -f {{ .CLI_ARGS }}
interactive: true