hyperdx/docker-compose.ci.yml
Drew Davis d760d2db5b
chore: Run integration tests on different ports (#1801)
# Summary

This PR updates the CI (integration tests) docker compose and env file so that the integration tests run on a separate set of ports, so that they can be run locally without interfering with an instance of the app running locally.

## Testing

To test locally

Start the app
```
yarn dev
```

Run the integration tests
```
make ci-int
```

Note that both can run at the same time without docker port conflicts. `make ci-int` can also be run without running the app - it uses its own independent mongo + clickhouse + api.
2026-02-25 20:52:17 +00:00

48 lines
1.4 KiB
YAML

name: hdx-ci
services:
otel-collector:
build:
context: .
dockerfile: docker/otel-collector/Dockerfile
target: dev
environment:
CLICKHOUSE_ENDPOINT: 'tcp://ch-server:9000?dial_timeout=10s'
HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE: ${HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE}
HYPERDX_API_KEY: ${HYPERDX_API_KEY}
HYPERDX_LOG_LEVEL: ${HYPERDX_LOG_LEVEL}
volumes:
- ./docker/otel-collector/config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- '23133:13133' # health_check extension
# - '24225:24225' # fluentd receiver
# - '4317:4317' # OTLP gRPC receiver
# - '4318:4318' # OTLP http receiver
# - '8888:8888' # metrics extension
networks:
- internal
depends_on:
- ch-server
ch-server:
image: clickhouse/clickhouse-server:26.1-alpine
environment:
# default settings
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
volumes:
- ./docker/clickhouse/local/config.xml:/etc/clickhouse-server/config.xml
- ./docker/clickhouse/local/users.xml:/etc/clickhouse-server/users.xml
restart: on-failure
ports:
- 18123:8123 # http api
# - 9000:9000 # native
networks:
- internal
db:
image: mongo:5.0.32-focal
command: --port 29999
ports:
- 39999:29999
networks:
- internal
networks:
internal:
name: 'hyperdx-ci-internal-network'