Skip to content

Commit

Permalink
Switch from docker-compose to docker compose on the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
luispabon committed Aug 16, 2024
1 parent 064824f commit df80122
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MKCERT_LOCATION=bin/mkcert
HOSTS_VERSION=3.6.4
HOSTS_LOCATION=bin/hosts
SITE_HOST=phpdocker.local
PHP_RUN=docker-compose run -e XDEBUG_MODE=coverage --rm php-fpm
PHP_RUN=docker compose run -e XDEBUG_MODE=coverage --rm php-fpm

INFECTION_THREADS?=8
BUILD_TAG?:=$(shell date +'%Y-%m-%d-%H-%M-%S')-$(shell git rev-parse --short HEAD)
Expand All @@ -27,23 +27,23 @@ echo-build-tag-2:
echo $(BUILD_TAG)

start:
docker-compose up -d --scale php-fpm=2
docker compose up -d --scale php-fpm=2

stop:
docker-compose stop
docker compose stop

shell:
$(PHP_RUN) bash

init: clean install-mkcert create-certs install-hosts clean-hosts init-hosts build-local install-dependencies install-assets-dev fix-permissions fix-cache-permissions-dev start

clean: clear-cache
docker-compose down
docker compose down
sudo rm -rf vendor
make clear-cache

build-local:
docker-compose build
docker compose build

fix-permissions:
sudo chown -Rf $(shell id -u):$(shell id -g) .
Expand Down

0 comments on commit df80122

Please sign in to comment.