-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
KHOUBZA Younes
committed
May 29, 2023
1 parent
72631d9
commit 660950d
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |