Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
williamputraintan committed Jul 29, 2024
1 parent 56a675c commit 5e64c9f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,29 @@ To develop your microservice application, please read:
- [event schema guide](docs/schemas/README.md)
- [shared resource guide](./lib/workload/stateful/stacks/shared/README.md)

### Running API Locally

You can run all microservice APIs locally at once using Docker Compose provided in the root of this project. To run with pre-loaded data in the API, use the following command, which will execute the script to inject data into the database:

```sh
make start-all-service
```

To stop the services, use:

```sh
make stop-all-service
```

The APIs will run on `localhost` with the following port assignments:

| Microservice | Local Endpoint |
|----------------------|-------------------------|
| File Manager | <http://localhost:8000> |
| Metadata Manager | <http://localhost:8100> |
| Workflow Manager | <http://localhost:8200> |
| Sequence Run Manager | <http://localhost:8300> |

### Typography

When possible, please use either `OrcaBus` (camel case) or `orcabus` (all lower case).
Expand Down
21 changes: 20 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ include:

services:



# PORT 8100 ~ metadata-manager
metadata-manager:
environment:
Expand All @@ -17,6 +19,12 @@ services:
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5

# PORT 8200 ~ workflow-manager
workflow-manager:
Expand All @@ -31,6 +39,12 @@ services:
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/wfm/v1"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5

# PORT 8300 ~ sequence-run-manager
sequence-run-manager:
Expand All @@ -45,4 +59,9 @@ services:
dockerfile: Dockerfile
depends_on:
- db

healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/srm/v1"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5

0 comments on commit 5e64c9f

Please sign in to comment.