Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(local): freeze project names for running locally to support worktrees (#3046)

teoca0f6840bda9
diff --git a/RUNNING_LOCALLY.md b/RUNNING_LOCALLY.md
index 758dc95f9e..5bf3854b98 100644
--- a/RUNNING_LOCALLY.md
+++ b/RUNNING_LOCALLY.md
@@ -23,6 +23,8 @@ export SOPS_KMS_ARN = "arn:aws:kms:us-east-1:569036502058:key/mrk-cab29bf948044e
Run `just setup` to initialize your entire environment.
+Local Docker resources are intentionally frozen to the `macro` Compose project. Multiple checkouts/worktrees share the same containers, volumes, networks, LocalStack, and FusionAuth instance. Do not run two local stacks at the same time.
+
## Running
### Backend
diff --git a/docker-compose-databases.yml b/docker-compose-databases.yml
index bb7b8bcf3d..ef30d24a60 100644
--- a/docker-compose-databases.yml
+++ b/docker-compose-databases.yml
@@ -1,3 +1,8 @@
+# Freeze the Docker Compose project name so every checkout/worktree uses the
+# same local database containers and Compose-managed resources.
+# Local setup is single-instance by design.
+name: macro
+
services:
postgres:
image: postgres:16
diff --git a/docker-compose.yml b/docker-compose.yml
index e3e0f1489a..d49bf80eec 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,9 @@
# Services
+# Freeze the Docker Compose project name so every checkout/worktree uses the
+# same local containers, networks, and anonymous Compose-managed resources.
+# Local setup is single-instance by design.
+name: macro
+
include:
- docker-compose-databases.yml
- infra/stacks/fusionauth-instance/docker-compose.yml
diff --git a/infra/stacks/fusionauth-instance/docker-compose.yml b/infra/stacks/fusionauth-instance/docker-compose.yml
index 8f2d382a15..f31979228e 100644
--- a/infra/stacks/fusionauth-instance/docker-compose.yml
+++ b/infra/stacks/fusionauth-instance/docker-compose.yml
@@ -1,3 +1,8 @@
+# Freeze the Docker Compose project name so every checkout/worktree uses the
+# same local FusionAuth containers, networks, and Compose-managed resources.
+# Local setup is single-instance by design.
+name: macro
+
services:
db:
image: postgres:16.0-bookworm
diff --git a/infra/stacks/fusionauth-instance/justfile b/infra/stacks/fusionauth-instance/justfile
index 1a29579a4f..5dd5520cf0 100644
--- a/infra/stacks/fusionauth-instance/justfile
+++ b/infra/stacks/fusionauth-instance/justfile
@@ -1,3 +1,7 @@
+# Freeze Docker Compose resources across checkouts/worktrees. Local setup is
+# single-instance by design; do not derive resource names from the directory.
+export COMPOSE_PROJECT_NAME := "macro"
+
# Gets the .env variables for the FusionAuth docker-compose.
get_fusionauth_env:
@echo "Getting fusionauth .env file for docker-compose"
diff --git a/justfile b/justfile
index 616b6eb878..c968c9593f 100644
--- a/justfile
+++ b/justfile
@@ -1,5 +1,9 @@
set positional-arguments
+# Freeze Docker Compose resources across checkouts/worktrees. Local setup is
+# single-instance by design; do not derive resource names from the directory.
+export COMPOSE_PROJECT_NAME := "macro"
+
# Creates global networks that are shared across docker-compose files
create_networks:
docker network create databases 2>/dev/null || true -- db network