65 lines
2 KiB
Makefile
65 lines
2 KiB
Makefile
|
|
# ==============================================================================
|
||
|
|
# VEZA MONOREPO - CONFIGURATION (single source of truth)
|
||
|
|
# ==============================================================================
|
||
|
|
# Edit this file to add services, change ports, or paths.
|
||
|
|
# Override via .env or environment (e.g. PORT_WEB=3000 make dev).
|
||
|
|
# ==============================================================================
|
||
|
|
|
||
|
|
-include .env
|
||
|
|
|
||
|
|
# --- Project ---
|
||
|
|
PROJECT_NAME ?= veza
|
||
|
|
ROOT ?= $(CURDIR)
|
||
|
|
|
||
|
|
# --- Compose ---
|
||
|
|
COMPOSE_FILE ?= docker-compose.yml
|
||
|
|
COMPOSE_PROD ?= docker-compose.prod.yml
|
||
|
|
|
||
|
|
# --- Services (space-separated; must match keys in SERVICE_DIRS / SERVICE_PORTS)
|
||
|
|
SERVICES := backend-api chat-server stream-server web haproxy
|
||
|
|
INFRA_SERVICES := postgres redis rabbitmq
|
||
|
|
|
||
|
|
# --- Service → Directory mapping (customize paths here)
|
||
|
|
SERVICE_DIR_backend-api := veza-backend-api
|
||
|
|
SERVICE_DIR_chat-server := veza-chat-server
|
||
|
|
SERVICE_DIR_stream-server := veza-stream-server
|
||
|
|
SERVICE_DIR_web := apps/web
|
||
|
|
SERVICE_DIR_haproxy :=
|
||
|
|
|
||
|
|
# --- Ports (override with PORT_<SERVICE>=... from .env)
|
||
|
|
PORT_backend-api ?= 8080
|
||
|
|
PORT_chat-server ?= 3000
|
||
|
|
PORT_stream-server ?= 3001
|
||
|
|
PORT_web ?= 5173
|
||
|
|
PORT_haproxy ?= 80
|
||
|
|
|
||
|
|
# Legacy names for backward compatibility
|
||
|
|
PORT_GO ?= $(PORT_backend-api)
|
||
|
|
PORT_CHAT ?= $(PORT_chat-server)
|
||
|
|
PORT_STREAM ?= $(PORT_stream-server)
|
||
|
|
PORT_WEB ?= $(PORT_web)
|
||
|
|
PORT_HAPROXY ?= $(PORT_haproxy)
|
||
|
|
|
||
|
|
# --- Database & Infra ---
|
||
|
|
DB_USER ?= veza
|
||
|
|
DB_PASS ?= password
|
||
|
|
DB_NAME ?= veza
|
||
|
|
DB_HOST ?= localhost
|
||
|
|
DB_PORT ?= 5432
|
||
|
|
|
||
|
|
DATABASE_URL = postgres://$(DB_USER):$(DB_PASS)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=disable
|
||
|
|
REDIS_URL = redis://localhost:6379
|
||
|
|
AMQP_URL = amqp://$(DB_USER):$(DB_PASS)@localhost:5672
|
||
|
|
|
||
|
|
# --- Incus ---
|
||
|
|
DEPLOY_TARGET ?= docker
|
||
|
|
INCUS_PROFILE ?= veza-profile
|
||
|
|
INCUS_NETWORK ?= veza-network
|
||
|
|
INCUS_SCRIPTS ?= $(ROOT)/config/incus
|
||
|
|
|
||
|
|
# --- NPM workspaces (from root package.json; used for install-deps / lint scope)
|
||
|
|
NPM_WORKSPACES ?= apps/web packages/design-system
|
||
|
|
|
||
|
|
# --- Scripts ---
|
||
|
|
SCRIPTS ?= $(ROOT)/scripts
|