Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/agents/playwright-test-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The webhook API enforces uniqueness on `(team, service, url)`. Hardcoded URLs wi
- Assert successful chart loads by checking `.recharts-responsive-container` is visible

### Tags
- `{ tag: '@full-stack' }` for tests requiring the backend (MongoDB + API)
- `{ tag: '@full-stack' }` for tests requiring the backend (DocumentDB + API)
- Feature tags: `@dashboard`, `@alerts`, `@search`, etc.

<example-generation>
Expand Down
2 changes: 1 addition & 1 deletion .claude/agents/playwright-test-planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ HyperDX is an observability platform. Key pages: `/search` (logs/traces), `/dash
- Components: `packages/app/tests/e2e/components/`

### Plan Requirements for HyperDX
- Scenarios must be independent and assume a fresh DB state (the test runner clears MongoDB before each run)
- Scenarios must be independent and assume a fresh DB state (the test runner clears DocumentDB before each run)
- Note when a scenario creates shared resources (e.g. webhooks, saved searches) that could conflict with parallel runs — flag these for data isolation
- Reference existing page objects when describing steps so the generator agent knows what abstractions are available
2 changes: 1 addition & 1 deletion .claude/skills/playwright/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The webhook API enforces uniqueness on `(team, service, url)`. A hardcoded URL w
- Assert successful chart loads by checking `.recharts-responsive-container` is visible

### Tags
- `{ tag: '@full-stack' }` — tests requiring MongoDB + API backend
- `{ tag: '@full-stack' }` — tests requiring DocumentDB + API backend
- Feature tags: `@dashboard`, `@alerts`, `@search`, etc.

### Imports
Expand Down
37 changes: 20 additions & 17 deletions .github/actions/e2e-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
Shared setup for E2E test workflows: sets the HDX_E2E_* port env vars and
common Playwright env vars, then runs Node.js setup, dependency install,
build, Playwright browser install, and starts the E2E Docker Compose stack
(MongoDB + ClickHouse) with health checks. The caller is responsible for
(DocumentDB + ClickHouse) with health checks. The caller is responsible for
`actions/checkout`, running Playwright, uploading artifacts, and tearing
down the Docker stack.
runs:
Expand All @@ -22,7 +22,7 @@ runs:
echo "HDX_E2E_MONGO_PORT=$MONGO_PORT" >> $GITHUB_ENV
echo "HDX_E2E_APP_LOCAL_PORT=21200" >> $GITHUB_ENV
echo "HDX_E2E_APP_PORT=21300" >> $GITHUB_ENV
echo "MONGO_URI=mongodb://localhost:$MONGO_PORT/hyperdx-e2e" >> $GITHUB_ENV
echo "MONGO_URI=mongodb://hyperdx:hyperdx@localhost:$MONGO_PORT/hyperdx-e2e?tls=true&tlsAllowInvalidCertificates=true&authMechanism=SCRAM-SHA-256" >> $GITHUB_ENV
echo "E2E_FULLSTACK=true" >> $GITHUB_ENV
echo "E2E_UNIQUE_USER=true" >> $GITHUB_ENV
echo "E2E_API_HEALTH_CHECK_MAX_RETRIES=60" >> $GITHUB_ENV
Expand Down Expand Up @@ -68,12 +68,23 @@ runs:
shell: bash
run: cd packages/app && npx playwright install chromium

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v4

# DocumentDB is built from source; the GHA cache keeps that to the first run.
# The tag must match the e2e compose `db` image so `up` reuses it instead of rebuilding.
- name: Build DocumentDB image
shell: bash
run: |
docker buildx create --use --driver=docker-container
docker buildx build docker/documentdb -t hyperdx/documentdb:local --cache-to "type=gha,mode=max,scope=documentdb" --cache-from "type=gha,scope=documentdb" --load

- name: Start E2E Docker Compose
shell: bash
run: |
# Pre-pull images with retries to handle transient Docker Hub timeouts
for attempt in 1 2 3; do
if docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml pull; then
if docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml pull --ignore-buildable; then
echo "Docker images pulled successfully on attempt $attempt"
break
fi
Expand All @@ -84,20 +95,12 @@ runs:
echo "Docker pull failed (attempt $attempt/3), retrying in 10s..."
sleep 10
done
docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml up -d
echo "Waiting for MongoDB..."
for i in $(seq 1 30); do
if docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml exec -T db mongosh --quiet --eval "db.adminCommand({ping:1})" >/dev/null 2>&1; then
echo "MongoDB is ready"
break
fi
if [ "$i" -eq 30 ]; then
echo "MongoDB failed to become ready after 30 seconds"
exit 1
fi
echo "Waiting for MongoDB... ($i/30)"
sleep 1
done
# --wait blocks on the DocumentDB healthcheck (gateway accepting connections).
if ! docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml up -d --wait --wait-timeout 300; then
echo "E2E services failed to become healthy"
docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml logs db | tail -30
exit 1
fi
echo "Waiting for ClickHouse..."
for i in $(seq 1 60); do
if curl -sf http://localhost:${HDX_E2E_CH_PORT}/ping >/dev/null 2>&1; then
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,15 @@ jobs:
- name: Spin up docker services
run: |
docker buildx create --use --driver=docker-container
docker buildx bake -f ./docker-compose.ci.yml --set *.cache-to="type=gha,mode=max,scope=ci-integration" --set *.cache-from="type=gha,scope=ci-integration" --load
# One cache scope per image (a scope holds one manifest); db reuses the e2e job's documentdb scope.
docker buildx bake -f ./docker-compose.ci.yml \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 P2 — Building the DocumentDB image from source on a cache miss probably won't fit the 16/15-minute CI job timeouts

The Dockerfile compiles the C extensions serially (make install-documentdb, no -j) and runs a release cargo build of the gateway. Any change to docker/documentdb/**, or the GHA cache evicting the large documentdb scope (mode=max keeps the Rust and C builder layers), makes all 4 integration shards (timeout-minutes: 16) and all 4 e2e shards (.github/workflows/e2e-tests.yml, timeout-minutes: 15) cold-build at once before tests start. Fix: build the image once in a dedicated upstream job (or push it to GHCR) that the shards needs:/pull, or raise the timeouts to allow for a cold build.

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 P2 — CI compiles DocumentDB from source on a cold cache inside 15–16 minute job limits

On a cache miss (first run of this PR, eviction from the 10 GB GHA cache, or any change under docker/documentdb), each of the 4 integration shards (timeout-minutes: 16) and the 4 e2e shards (timeout-minutes: 15 in .github/workflows/e2e-tests.yml) builds the Dockerfile in parallel. That means libbson, pcre2, the Intel decimal library, the C extensions and the Rust gateway (cargo build --release), and the tests still have to run inside the same budget. Build the image once, either in a single upstream job that the shards needs: or by pushing it to a registry pinned by digest, and have the shards only pull it.

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

--set otel-collector.cache-to="type=gha,mode=max,scope=ci-integration" --set otel-collector.cache-from="type=gha,scope=ci-integration" \
--set db.cache-to="type=gha,mode=max,scope=documentdb" --set db.cache-from="type=gha,scope=documentdb" \
--load
- name: Build dependencies
run: make ci-build
# Integration tests boot a MockServer on fixed ports and share a single
# MongoDB/ClickHouse database, so they must stay serial (--runInBand)
# DocumentDB/ClickHouse database, so they must stay serial (--runInBand)
# within a runner. We shard ACROSS runners instead: each shard is its own
# VM with its own Docker stack, and jest's --shard splits the test files
# so the shards run in parallel.
Expand All @@ -146,6 +150,8 @@ jobs:
- name: Run integration tests
run: |
docker compose -f ./docker-compose.ci.yml up -d --quiet-pull
# Wait on DocumentDB only: the collector's healthcheck needs an OpAMP server this job doesn't run.
docker compose -f ./docker-compose.ci.yml up -d --wait --wait-timeout 300 db
status=0
yarn workspace @hyperdx/common-utils ci:int --shard=${{ matrix.shard }}/${{ strategy.job-total }} || status=1
yarn workspace @hyperdx/api ci:int --shard=${{ matrix.shard }}/${{ strategy.job-total }} || status=1
Expand Down
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This is a **monorepo** with six packages:
comparison workflow.

**Data flow**: Apps → OpenTelemetry Collector → ClickHouse (telemetry data) /
MongoDB (configuration/metadata)
a MongoDB-compatible store (configuration/metadata; DocumentDB in local dev)

## Development Setup (HOW)

Expand All @@ -44,7 +44,8 @@ yarn dev # Start full stack with worktree-isolated ports
```

The project uses **Yarn 4.13.0** workspaces. Docker Compose manages ClickHouse,
MongoDB, and the OTel Collector.
DocumentDB (the local metadata store, which the API reaches over the Mongo wire
protocol), and the OTel Collector.

**This repo is multi-agent friendly.** `yarn dev`, `make dev-int`, and
`make dev-e2e` all use slot-based port isolation so multiple worktrees can run
Expand Down Expand Up @@ -461,7 +462,7 @@ default `/workspace` directory, the slot is **76**, so services are at:
- **App**: http://localhost:30276
- **API**: http://localhost:30176
- **ClickHouse**: http://localhost:30576
- **MongoDB**: localhost:30476
- **DocumentDB**: localhost:30476

### Key commands reference

Expand All @@ -475,7 +476,7 @@ reference. Quick summary:

### First-time registration

When the dev stack starts fresh (empty MongoDB), the app shows a registration
When the dev stack starts fresh (empty DocumentDB), the app shows a registration
page. Create any account to get started — no external auth provider is needed.

---
Expand Down
12 changes: 7 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ Service Descriptions:
instrumented applications and forwards it to ClickHouse for storage. Includes
OpAMP supervisor that dynamically pulls configuration from ClickStack API.
- ClickHouse (ch-server): ClickHouse database, stores all telemetry.
- MongoDB (db): Stores user/saved search/alert/dashboard data.
- MongoDB (db): Stores user/saved search/alert/dashboard data. Local dev runs
DocumentDB instead, which the API reaches over the Mongo wire protocol.
- ClickStack API (api): Node.js API, executes ClickHouse queries on behalf of the
frontend and serves the frontend. serves the frontend. Can also run alert
checker.
Expand All @@ -199,7 +200,8 @@ yarn dev
```

This will start the Node.js API, Next.js frontend locally and the OpenTelemetry
collector and ClickHouse server in Docker.
collector, ClickHouse server and DocumentDB in Docker. To browse DocumentDB, see
the connection string in `agent_docs/development.md`.

Each worktree automatically gets unique ports so multiple developers (or agents)
can run `yarn dev` simultaneously without conflicts. A dev portal at
Expand Down Expand Up @@ -236,8 +238,8 @@ see them reflected in real-time.

The development stack mounts volumes locally for persisting storage under
`.volumes`. Each worktree gets its own volume directory (e.g.
`.volumes/ch_data_dev_89`). Clear the `.volumes` directory to reset ClickHouse
and MongoDB storage.
`.volumes/ch_data_dev_89`, `.volumes/docdb_dev_89`). Clear the `.volumes`
directory to reset ClickHouse and DocumentDB storage.

### Windows

Expand All @@ -257,7 +259,7 @@ simultaneously with the dev stack and across multiple worktrees.

### E2E Tests

E2E tests run against a full local stack (MongoDB + ClickHouse + API). Docker
E2E tests run against a full local stack (DocumentDB + ClickHouse + API). Docker
must be running.

```bash
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ install-tools:
# API server : 30100 + slot
# App (Next.js) : 30200 + slot
# OpAMP : 30300 + slot
# MongoDB : 30400 + slot
# DocumentDB : 30400 + slot
# ClickHouse HTTP : 30500 + slot
# ClickHouse Native : 30600 + slot
# OTel health : 30700 + slot
Expand Down Expand Up @@ -158,7 +158,8 @@ dev-int:
@echo "Using CI slot $(HDX_CI_SLOT) (project=$(HDX_CI_PROJECT) ch=$(HDX_CI_CH_PORT) mongo=$(HDX_CI_MONGO_PORT) api=$(HDX_CI_API_PORT))"
@mkdir -p $(HDX_CI_LOGS_DIR)
@bash scripts/ensure-dev-portal.sh
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --build
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --wait --wait-timeout 300 db

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 P2 — A failed DocumentDB health wait in dev-int skips the down -v cleanup

The new up -d --wait ... db runs as its own recipe line, so when DocumentDB never becomes healthy, make stops there. The teardown on the following line never runs, and ClickHouse, the collector and db stay up on the slot. The same applies to dev-int-common-utils and ci-int. Fold the wait into the same shell line as the test run so down -v always runs, e.g. docker compose ... up -d --wait ... db && bash -c '...'; ret=$$?; docker compose ... down -v; ....

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

bash -c 'set -o pipefail; npx nx run @hyperdx/api:dev:int $(FILE) 2>&1 | tee $(HDX_CI_LOGS_DIR)/api-int.log'; ret=$$?; \
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml down -v; \
$(call archive-int-logs); \
Expand All @@ -169,7 +170,8 @@ dev-int-common-utils:
@echo "Using CI slot $(HDX_CI_SLOT) (project=$(HDX_CI_PROJECT) ch=$(HDX_CI_CH_PORT) mongo=$(HDX_CI_MONGO_PORT))"
@mkdir -p $(HDX_CI_LOGS_DIR)
@bash scripts/ensure-dev-portal.sh
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --build
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --wait --wait-timeout 300 db
bash -c 'set -o pipefail; npx nx run @hyperdx/common-utils:dev:int $(FILE) 2>&1 | tee $(HDX_CI_LOGS_DIR)/common-utils-int.log'; ret=$$?; \
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml down -v; \
$(call archive-int-logs); \
Expand All @@ -179,6 +181,7 @@ dev-int-common-utils:
ci-int:
@mkdir -p $(HDX_CI_LOGS_DIR)
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --quiet-pull
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml up -d --wait --wait-timeout 300 db
bash -c 'set -o pipefail; npx nx run-many -t ci:int --parallel=false --output-style=stream 2>&1 | tee $(HDX_CI_LOGS_DIR)/ci-int.log'; ret=$$?; \
docker compose -p $(HDX_CI_PROJECT) -f ./docker-compose.ci.yml down -v; \
$(call archive-int-logs); \
Expand Down
21 changes: 16 additions & 5 deletions agent_docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ yarn dev # or equivalently: make dev
## Environment Configuration

- `.env.development`: Development environment variables
- Docker Compose manages ClickHouse, MongoDB, OTel Collector
- Docker Compose manages ClickHouse, DocumentDB, OTel Collector
- The metadata store is [DocumentDB](https://github.com/documentdb/documentdb)
(Postgres plus a Mongo wire-protocol gateway), built from

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to connect via postgres directly as well, but we dont expose the port. do you think its worth exposing or later problem?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'd say that we probably don't need the PG port exposed for now. Added a docker exec command to development.md if we need to jump into PG to debug anything.

`docker/documentdb/Dockerfile`. The API still talks to it through Mongoose.
To browse it with MongoDB Compass or `mongosh`, connect to
`mongodb://hyperdx:hyperdx@localhost:<HDX_DEV_MONGO_PORT>/?tls=true&tlsAllowInvalidCertificates=true&authMechanism=SCRAM-SHA-256`.
Everything works except Compass's Performance tab (the gateway doesn't
implement `serverStatus` or `top`).
For the Postgres underneath (documents are BSON rows in `documentdb_data`),
run `docker exec -it -u postgres hdx-dev-<slot>-db-1 psql -h /tmp -U postgres -d postgres`.
Dev data lives in `.volumes/docdb_dev_<slot>`; data from the old MongoDB
volumes (`.volumes/db_dev_<slot>`) is not migrated, so the dev stack starts empty.
- Hot reload enabled for all services in development

## Worktree Isolation (Multi-Agent / Multi-Developer)
Expand Down Expand Up @@ -59,7 +70,7 @@ integration tests (14320-40098) and E2E tests (20320-21399).
| API server | 30100 | 30100 - 30199 | `HYPERDX_API_PORT` |
| App (Next.js) | 30200 | 30200 - 30299 | `HYPERDX_APP_PORT` |
| OpAMP | 30300 | 30300 - 30399 | `HYPERDX_OPAMP_PORT` |
| MongoDB | 30400 | 30400 - 30499 | `HDX_DEV_MONGO_PORT` |
| DocumentDB | 30400 | 30400 - 30499 | `HDX_DEV_MONGO_PORT` |
| ClickHouse HTTP | 30500 | 30500 - 30599 | `HDX_DEV_CH_HTTP_PORT` |
| ClickHouse Native | 30600 | 30600 - 30699 | `HDX_DEV_CH_NATIVE_PORT` |
| OTel health | 30700 | 30700 - 30799 | `HDX_DEV_OTEL_HEALTH_PORT` |
Expand Down Expand Up @@ -173,15 +184,15 @@ Port mapping (base + slot):
| Service | Default port (slot 0) | Variable |
| --------------- | --------------------- | ----------------- |
| ClickHouse HTTP | 18123 | HDX_CI_CH_PORT |
| MongoDB | 39999 | HDX_CI_MONGO_PORT |
| DocumentDB | 39999 | HDX_CI_MONGO_PORT |
| API test server | 19000 | HDX_CI_API_PORT |
| OpAMP | 14320 | HDX_CI_OPAMP_PORT |

**CI Testing Notes:**

- Uses separate Docker Compose configuration (`docker-compose.ci.yml`)
- Isolated test environment with unique `-p int-<slot>` project name
- Includes all necessary services (ClickHouse, MongoDB, OTel Collector)
- Includes all necessary services (ClickHouse, DocumentDB, OTel Collector)
- Tests run against real database instances for accurate integration testing

### E2E Testing
Expand All @@ -198,7 +209,7 @@ E2E port mapping (base + slot):
| ClickHouse HTTP | 20500 | 20500 - 20599 | `HDX_E2E_CH_PORT` |
| ClickHouse Native | 20600 | 20600 - 20699 | `HDX_E2E_CH_NATIVE_PORT` |
| API server | 21000 | 21000 - 21099 | `HDX_E2E_API_PORT` |
| MongoDB | 21100 | 21100 - 21199 | `HDX_E2E_MONGO_PORT` |
| DocumentDB | 21100 | 21100 - 21199 | `HDX_E2E_MONGO_PORT` |
| App (local) | 21200 | 21200 - 21299 | `HDX_E2E_APP_LOCAL_PORT` |
| App (fullstack) | 21300 | 21300 - 21399 | `HDX_E2E_APP_PORT` |

Expand Down
6 changes: 3 additions & 3 deletions agent_docs/evals.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ compare any two (or more) MCP servers side by side.

| Requirement | Notes |
|---|---|
| `yarn dev` running | Each worktree needs `yarn dev` running with a fixed slot. This handles `yarn install`, `yarn build:common-utils`, Docker containers (ClickHouse, MongoDB), and the API server. See [Development Setup](development.md). |
| `yarn dev` running | Each worktree needs `yarn dev` running with a fixed slot. This handles `yarn install`, `yarn build:common-utils`, Docker containers (ClickHouse, DocumentDB), and the API server. See [Development Setup](development.md). |
| `ANTHROPIC_API_KEY` or `AI_API_KEY` | Auto-loaded from `.env.local` at the monorepo root. Check `.env.local` in other worktrees for existing keys if missing. |
| `claude` CLI | Installed globally (`which claude`). The harness spawns it in streaming JSON mode. |
| `uv` | Only needed for `stdio`-type MCPs (e.g. raw ClickHouse MCP). Install via `curl -LsSf https://astral.sh/uv/install.sh \| sh`. |
Expand Down Expand Up @@ -75,7 +75,7 @@ dual-slot comparisons you must seed each instance explicitly (step 4b).

### 1. Start both dev stacks

`yarn dev` starts Docker infra (ClickHouse, MongoDB, OTel Collector) **and**
`yarn dev` starts Docker infra (ClickHouse, DocumentDB, OTel Collector) **and**
the API + App servers in one command. Run it from each worktree with a fixed
slot:

Expand Down Expand Up @@ -326,7 +326,7 @@ Always use the `bash -c 'export HDX_DEV_SLOT=... && source scripts/dev-env.sh

### Access keys go stale after container restarts

When MongoDB is recreated, the eval account's access key changes. Re-run
When DocumentDB is recreated, the eval account's access key changes. Re-run
`setup-hyperdx` against the affected instance and rebuild the combined config.

### False timeouts
Expand Down
9 changes: 6 additions & 3 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ services:
networks:
- internal
db:
image: mongo:5.0.32-focal
command: --port 29999
image: hyperdx/documentdb:local
build: ./docker/documentdb
environment:
DOCDB_USER: hyperdx
DOCDB_PASSWORD: hyperdx
ports:
- '${HDX_CI_MONGO_PORT:-39999}:29999'
- '127.0.0.1:${HDX_CI_MONGO_PORT:-39999}:10260'
networks:
- internal
networks:
Expand Down
12 changes: 8 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ services:
db:
labels:
<<: *hdx-labels
hdx.dev.service: mongodb
hdx.dev.service: documentdb
hdx.dev.port: '${HDX_DEV_MONGO_PORT:-27017}'
image: mongo:5.0.32-focal
image: hyperdx/documentdb:local
build: ./docker/documentdb
environment:
DOCDB_USER: hyperdx
DOCDB_PASSWORD: hyperdx
volumes:
- .volumes/db_dev_${HDX_DEV_SLOT:-0}:/data/db
- .volumes/docdb_dev_${HDX_DEV_SLOT:-0}:/data/docdb
ports:
- '${HDX_DEV_MONGO_PORT:-27017}:27017'
- '127.0.0.1:${HDX_DEV_MONGO_PORT:-27017}:10260'
networks:
- internal
otel-collector:
Expand Down
Loading
Loading