Skip to content

Commit

Permalink
feat: add taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KHOUBZA Younes committed May 29, 2023
1 parent 72631d9 commit 660950d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Taskfile.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 660950d

Please sign in to comment.