Skip to content

Commit

Permalink
feat: docker-compose -> docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
MacQSL committed Aug 12, 2024
1 parent 1b06519 commit 378b462
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
- name: Create ENV file
run: cp -f ./.docker/env.docker .env

- name: Help 1
run: docker compose --help

- name: Clean containers
run: make clean

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ close: ## Closes all project containers
@echo "==============================================="
@echo "Make: close - closing Docker containers"
@echo "==============================================="
@docker-compose -f docker-compose.yml down
@docker compose -f docker-compose.yml down

clean: ## Closes and cleans (removes) all project containers
@echo "==============================================="
@echo "Make: clean - closing and cleaning Docker containers"
@echo "==============================================="
@docker-compose -f docker-compose.yml down -v --rmi all --remove-orphans
@docker compose -f docker-compose.yml down -v --rmi all --remove-orphans


## ------------------------------------------------------------------------------
Expand All @@ -56,13 +56,13 @@ build-postgres: ## Builds the postgres db containers
@echo "==============================================="
@echo "Make: build-postgres - building postgres db images"
@echo "==============================================="
@docker-compose -f docker-compose.yml build critterbase-db critterbase-db_setup
@docker compose -f docker-compose.yml build critterbase-db critterbase-db_setup

run-postgres: ## Runs the postgres db containers
@echo "==============================================="
@echo "Make: run-postgres - running postgres db images"
@echo "==============================================="
@docker-compose -f docker-compose.yml up -d critterbase-db critterbase-db_setup
@docker compose -f docker-compose.yml up -d critterbase-db critterbase-db_setup


## ------------------------------------------------------------------------------
Expand All @@ -74,13 +74,13 @@ build-backend: ## Builds all backend containers
@echo "==============================================="
@echo "Make: build-backend - building backend images"
@echo "==============================================="
@docker-compose -f docker-compose.yml build critterbase-db critterbase-db_setup critterbase-api
@docker compose -f docker-compose.yml build critterbase-db critterbase-db_setup critterbase-api

run-backend: ## Runs all backend containers
@echo "==============================================="
@echo "Make: run-backend - running backend images"
@echo "==============================================="
@docker-compose -f docker-compose.yml up -d critterbase-db critterbase-db_setup critterbase-api
@docker compose -f docker-compose.yml up -d critterbase-db critterbase-db_setup critterbase-api


## ------------------------------------------------------------------------------
Expand Down

0 comments on commit 378b462

Please sign in to comment.