Files
plane/apps/pi/Makefile
T
74fe1af85f [PAI-759] chore: Add 'plane-pi' codebase to plane-ee/apps dir (#4379)
* add plane-pi folder to apps/

* chore: add Plane PI build-push workflow to GitHub Actions

* chore: update Plane PI build-push workflow with environment variables and job configuration

* chore: remove Plane PI build-push workflow from GitHub Actions

* chore: rename folder in apps

---------

Co-authored-by: akshat5302 <[email protected]>
Co-authored-by: sriramveeraghanta <[email protected]>
2025-10-08 17:45:53 +05:30

45 lines
956 B
Makefile

.PHONY: build start stop logs restart clean
# Load .env file
include .env
export
# Define services
SERVICES := fastapi vectordb-feeder
# Default to local environment if not specified
# Set environment based on DEBUG value
ENV := $(if $(filter 9,$(DEBUG)),local,$(if $(filter 1,$(DEBUG)),preview,local))
COMPOSE_FILE := docker-compose-$(ENV).yml
# Generic commands that can take a service name as argument
build-%:
docker compose -f $(COMPOSE_FILE) up -d --build $*
start-%:
docker compose -f $(COMPOSE_FILE) up -d $*
stop-%:
docker compose -f $(COMPOSE_FILE) stop $*
logs-%:
docker compose -f $(COMPOSE_FILE) logs -f $*
# Generic commands for all services
build:
docker compose -f $(COMPOSE_FILE) up -d --build
start:
docker compose -f $(COMPOSE_FILE) up -d
stop:
docker compose down
logs:
docker compose -f $(COMPOSE_FILE) logs -f
restart:
docker compose down && docker compose -f $(COMPOSE_FILE) up -d
clean:
docker compose down -v