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.

2.0 KB
Raw Blame
# 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
    env_file:
      - path: .env
        required: false
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_USER: ${POSTGRES_USER:-postgres}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
    healthcheck:
      test: [ "CMD-SHELL", "pg_isready -U postgres" ]
      interval: 5s
      timeout: 5s
      retries: 5
    networks:
      - auth-internal
    volumes:
      - db_data:/var/lib/postgresql/data

  fusionauth:
    image: fusionauth/fusionauth-app:1.62.1
    init: true
    env_file:
      - path: .env
        required: false
    depends_on:
      db:
        condition: service_healthy
      # search:
      #   condition: service_healthy
    environment:
      DATABASE_URL: jdbc:postgresql://db:5432/fusionauth
      DATABASE_ROOT_USERNAME: ${POSTGRES_USER:-postgres}
      DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
      DATABASE_USERNAME: ${DATABASE_USER:-fusionauth}
      FUSIONAUTH_APP_KICKSTART_FILE: /usr/local/fusionauth/kickstart/kickstart.json
      FUSIONAUTH_APP_MEMORY: 512M 
      FUSIONAUTH_APP_RUNTIME_MODE: development
      FUSIONAUTH_APP_URL: http://fusionauth:9011
    healthcheck:
      test: ["CMD-SHELL", "curl -s --max-time 4 http://localhost:9011/api/status | grep -q '\"status\":\"Ok\"'"]
      interval: 5s
      timeout: 5s
      retries: 5
    ports:
      - 9011:9011
    networks:
      - auth-internal
      - auth # exposes to other services
    volumes:
      - fusionauth_config:/usr/local/fusionauth/config
      - ./kickstart:/usr/local/fusionauth/kickstart

volumes:
  db_data:
    name: fusionauth_db_data
    external: true
  fusionauth_config:
    name: fusionauth_config
    external: true

networks:
  auth-internal:
    driver: bridge
  auth:
    external: true