Skip to content

Comments

Add micro.mu configuration for enhanced micro run#27

Merged
asim merged 1 commit intomasterfrom
feat/micro-mu-config
Jan 27, 2026
Merged

Add micro.mu configuration for enhanced micro run#27
asim merged 1 commit intomasterfrom
feat/micro-mu-config

Conversation

@asim
Copy link
Member

@asim asim commented Jan 27, 2026

Summary

Adds a micro.mu configuration file to enable the enhanced micro run experience from go-micro PR #2829.

Configuration

service users
    path ./users
    port 8081

service posts
    path ./posts
    port 8082
    depends users

service comments
    path ./comments
    port 8083
    depends users posts

service web
    path ./web
    port 8089
    depends users posts comments

env development
    GIN_MODE debug
    STORE_ADDRESS file://./data

env production
    GIN_MODE release

Benefits

  1. Hot reload - Change code, services auto-rebuild and restart
  2. Dependency ordering - Services start in correct order (users first, web last)
  3. Environment management - micro run --env production
  4. Self-documenting - Configuration shows service relationships

Usage

# Development with hot reload
micro run

# Production mode
micro run --env production

# Without hot reload
micro run --no-watch

Dependencies

Requires go-micro v5 with micro/go-micro#2829

- Define service dependencies (users → posts → comments → web)
- Configure ports for each service
- Add environment-specific settings (development/production)
- Document configuration in README

This enables:
- Hot reload during development
- Services starting in dependency order
- Environment management with --env flag

Requires: go-micro.dev/v5 with PR #2829
Co-authored-by: Shelley <[email protected]>
@asim asim merged commit 1092d58 into master Jan 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants