-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
5 changed files
with
52 additions
and
13 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
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
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,29 @@ | ||
# REQUIRED SECTION | ||
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
include $(ROOT_DIR)/.makefile-lib/common.mk | ||
# END OF REQUIRED SECTION | ||
|
||
.PHONY: help dependencies up start stop restart status ps clean | ||
|
||
dependencies: check-dependencies ## Check dependencies | ||
|
||
up: ## Start all or c=<name> containers in foreground | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up $(c) | ||
|
||
start: ## Start all or c=<name> containers in background | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up -d $(c) | ||
|
||
stop: ## Stop all or c=<name> containers | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) stop $(c) | ||
|
||
restart: ## Restart all or c=<name> containers | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) stop $(c) | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up $(c) -d | ||
|
||
status: ## Show status of containers | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) ps | ||
|
||
ps: status ## Alias of status | ||
|
||
clean: ## Clean all data | ||
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) down |
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
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