Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
# Local E2E overrides for docker/docker-compose.yml.
#
# The default .env can point at shared dev infrastructure. Keep Playwright's
# deterministic smoke suite on local Docker dependencies by overriding the
# service environment here and running compose with:
# COMPOSE_FILE=docker/docker-compose.yml:docker/docker-compose.local-e2e.yml
x-local-e2e-env: &local-e2e-env
DATABASE_URL: postgres://user:password@postgres:5432/macrodb
DATABASE_URL_READONLY: postgres://user:password@postgres:5432/macrodb
LOCAL_AWS_URL: http://localstack:4566
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_REGION: us-east-1
AWS_DEFAULT_REGION: us-east-1
REDIS_URI: redis://redis:6379
DOCUMENT_STORAGE_SERVICE_REDIS_URI: redis://redis:6379
ATTACHMENT_BUCKET: macro-email-attachments
DOCUMENT_STORAGE_BUCKET: doc-storage
DOCX_DOCUMENT_UPLOAD_BUCKET: docx-upload
STATIC_STORAGE_BUCKET: static-file-storage
UPLOAD_STAGING_BUCKET: bulk-upload-staging
AGENT_SESSION_CHANGES_BUCKET: agent-session-changes
GITHUB_PULL_REQUEST_PATCH_BUCKET: github-pull-request-patches
BULK_UPLOAD_REQUESTS_TABLE: bulk-upload
CONNECTION_GATEWAY_TABLE: connection-gateway-table
STATIC_FILE_SERVICE_DYNAMODB_TABLE_NAME: static-file-metadata
# Queue names now live in the `macro_queues` crate; these OVERRIDE_* vars point
# the local-e2e services at the localstack queues (OVERRIDE_ wins over the
# per-environment constant regardless of ENVIRONMENT).
OVERRIDE_CHAT_DELETE_QUEUE: delete-chat-handler-queue
OVERRIDE_CONTACTS_QUEUE: contacts-queue
OVERRIDE_CONVERT_QUEUE: convert-service-queue
OVERRIDE_DOCUMENT_DELETE_QUEUE: delete-document-handler-queue
OVERRIDE_DOCUMENT_TEXT_EXTRACTOR_QUEUE: document-text-extractor-lambda-queue
OVERRIDE_EMAIL_SCHEDULED_QUEUE: email-service-scheduled-queue
OVERRIDE_GMAIL_INBOX_SYNC_QUEUE: email-service-gmail-inbox-sync-queue
OVERRIDE_GMAIL_INBOX_SYNC_RETRY_QUEUE: email-service-gmail-inbox-retry-queue
OVERRIDE_GMAIL_OPS_QUEUE: email-service-gmail-ops-queue
OVERRIDE_GMAIL_OPS_RETRY_QUEUE: email-service-gmail-ops-retry-queue
OVERRIDE_LINK_MANAGER_QUEUE: email-service-refresh-queue
OVERRIDE_NOTIFICATION_QUEUE: http://localstack:4566/000000000000/notification-queue
OVERRIDE_NOTIFICATION_INGRESS_QUEUE: http://localstack:4566/000000000000/notification-ingress-queue
OVERRIDE_PUSH_NOTIFICATION_EVENT_HANDLER_QUEUE: push-delivery-queue
OVERRIDE_WEBHOOK_EVENT_QUEUE: http://localstack:4566/000000000000/webhook-event-queue.fifo
OVERRIDE_SEARCH_EVENT_QUEUE: search-event-queue
OVERRIDE_AI_PROJECTION_QUEUE: http://localstack:4566/000000000000/ai-projection-queue
OVERRIDE_SFS_DELETE_QUEUE: email-sfs-delete-queue
OVERRIDE_SFS_UPLOADER_QUEUE: email-service-sfs-mapper-queue
OVERRIDE_STATIC_FILE_SERVICE_S3_EVENT_QUEUE_URL: http://localstack:4566/000000000000/static-file-s3-event-notification-queue
OVERRIDE_EMAIL_BACKFILL_QUEUE: http://localstack:4566/000000000000/email-service-backfill-queue
# The ai_tools context wires these queues only when explicitly enabled.
ENABLE_EMAIL_SCHEDULED_QUEUE: "true"
ENABLE_GMAIL_OPS_QUEUE: "true"
services:
authentication-service:
environment: *local-e2e-env
connection_gateway:
environment: *local-e2e-env
contacts_service:
environment: *local-e2e-env
# Not needed by the smoke suite. Keep this behind an inactive profile so
# missing cognition-only env vars do not block local E2E startup.
agent_harness_service:
profiles:
- local-e2e-unused
environment: *local-e2e-env
# lexical_service is intentionally disabled below for local E2E, so remove
# it from the base service dependency set if this profile is enabled manually.
depends_on: !override
- document_storage_service
- email_service
- static_file_service
- sync_service
document_storage_service:
environment: *local-e2e-env
# Lexical is disabled for the smoke suite below, so remove it from the
# base service dependency set.
depends_on: !override
- redis
- connection_gateway
- authentication-service
- sync_service
document_upload_finalizer:
environment:
<<: *local-e2e-env
DOCUMENT_UPLOAD_FINALIZER_QUEUE_URL: http://localstack:4566/000000000000/document-upload-finalizer-queue
# lexical_service is intentionally disabled below for local E2E, so remove
# it from the base service dependency set.
depends_on: !override
- postgres
- sync_service
email_service:
environment: *local-e2e-env
# Not needed by the smoke suite. Keep this behind an inactive profile because
# it requires push/SNS/email notification env that is unrelated to local E2E.
notification_service:
profiles:
- local-e2e-unused
environment: *local-e2e-env
depends_on: !override
- redis
- authentication-service
- connection_gateway
- document_storage_service
search_processing_service:
profiles:
- local-e2e-unused
environment: *local-e2e-env
static_file_service:
environment: *local-e2e-env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
unfurl_service:
environment: *local-e2e-env
image_proxy_service:
environment: *local-e2e-env
sync_service:
environment: *local-e2e-env
# Not needed by the smoke suite. Keep this behind an inactive profile because
# its Docker image currently depends on sibling packages/lexical-core sources that
# are outside its build context.
lexical_service:
profiles:
- local-e2e-unused
environment: *local-e2e-env