Skip to content

Commit de873ad

Browse files
committed
chore(docker): add compose override for local server development
Add a docker-compose override file that stubs out the Cadence server container while keeping infrastructure dependencies (Cassandra, Kafka, Elasticsearch, Prometheus, Grafana) running in Docker. This enables running and debugging the server natively from the local repository against real dockerized dependencies.
1 parent f68d9e0 commit de873ad

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Override file for running the Cadence server natively on the host machine
2+
# while keeping infrastructure dependencies (Cassandra, Kafka, ES, etc.) in Docker.
3+
#
4+
# Usage:
5+
# docker compose -f docker/docker-compose-es-v7.yml -f docker/docker-compose-local-server.yml up
6+
#
7+
# The cadence service is replaced with a no-op container so that only the
8+
# infrastructure services start. Kafka advertises on 127.0.0.1 so the
9+
# host-running server can reach it, and cadence-web points back to the host.
10+
services:
11+
cadence:
12+
image: busybox
13+
entrypoint: ["true"]
14+
ports: !reset []
15+
environment: !reset []
16+
depends_on: !reset {}
17+
kafka:
18+
environment:
19+
- "KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092"
20+
cadence-web:
21+
environment:
22+
- "CADENCE_GRPC_PEERS=host.docker.internal:7833"

0 commit comments

Comments
 (0)