Skip to content

Commit

Permalink
Merge pull request #9 from marcosoliveirasoares94/fix-makefile
Browse files Browse the repository at this point in the history
Enhancing Makefile features
  • Loading branch information
WendellAdriel authored May 20, 2023
2 parents 6b41aa8 + 2abe311 commit 3c79daa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ help:
start: ## Spin up the containers and run the app UI in watch mode
docker compose up -d

stop: ## Shut down the containers
docker compose down \
stop: ## Stop the containers
docker compose stop \
&& rm -f docker/redis/data/dump.rdb

status: ## Status the containers
docker compose ps

down: ## Shut down the containers with args for removed volumes
docker compose down $(ARGS) \
&& rm -f docker/redis/data/dump.rdb

build: ## Build all docker images OR a specific image by providing the service name via: make build SERVICE_NAME=<service>
cp .env.example .env \
[ -f .env ] || cp .env.example .env \
&& docker compose build $(SERVICE_NAME)

db-start: ## Spin up the DB container for migrations and seeding
Expand Down

0 comments on commit 3c79daa

Please sign in to comment.