Skip to content

Commit

Permalink
feat: allow to launch a single service with make
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Oct 17, 2022
1 parent 93524c6 commit 92b01d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ up:
# creates a docker network and runs docker-compose
@echo "🥫 Building and starting containers …"
docker network create po_default || true
ifdef service
${DOCKER_COMPOSE} up -d --build ${service} 2>&1
else
${DOCKER_COMPOSE} up -d --build 2>&1
endif

down:
@echo "🥫 Bringing down containers …"
Expand All @@ -64,7 +68,7 @@ hdown:
${DOCKER_COMPOSE} down -v

restart:
@echo "🥫 Restarting frontend & backend containers …"
@echo "🥫 Restarting containers …"
${DOCKER_COMPOSE} restart

status:
Expand Down

0 comments on commit 92b01d9

Please sign in to comment.