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
13 changes: 8 additions & 5 deletions infra/docker/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# HoldFast — Local Docker Stack

Quickstart for running HoldFast end-to-end on a single machine. Works on Linux,
macOS, and Windows (via Docker Desktop). The stack runs as 9 services in a
single `docker compose` project: backend, frontend, collector, predictions,
macOS, and Windows (via Docker Desktop). The stack runs as 8 services in a
single `docker compose` project: backend, frontend, collector,
postgres, clickhouse, kafka, zookeeper, redis.

(See [HOL-17](https://yt.brewingcoder.com/issue/HOL-17) for the in-flight
work to reduce this further.)

> Production deployments should use a Helm chart (TODO) or a managed-service
> compose. This compose file is for development and demos only — secrets are
> in plaintext and the cluster is single-broker single-replica.
Expand All @@ -13,7 +16,7 @@ postgres, clickhouse, kafka, zookeeper, redis.

- Docker 24+ with Docker Compose v2
- ~6 GB free RAM (kafka + clickhouse + jvm overhead)
- Ports free on the host: 3000, 5001, 5432, 6379, 8082, 8123, 8889, 9000, 9092, 4317-4319
- Ports free on the host: 3000, 5432, 6379, 8082, 8123, 8889, 9000, 9092, 4317-4319

If you're on Windows, also ensure `*.sh` files in your checkout have LF line
endings. The `.gitattributes` rule should handle this for fresh clones; if
Expand Down Expand Up @@ -130,8 +133,8 @@ docker compose -f compose.yml -f compose.hobby-dotnet.yml up -d --force-recreate

## Compose file layering

- `compose.yml` — base infra (postgres, clickhouse, kafka, redis, etc.) and
the predictions sidecar. Always required.
- `compose.yml` — base infra (postgres, clickhouse, kafka, redis, etc.).
Always required.
- `compose.hobby-dotnet.yml` — adds the .NET backend, frontend, and collector
with hobby/dev defaults (DevSeed on, SSL off, plaintext password).
- `compose.hobby.yml` — adds the **legacy Go** backend instead of .NET. Pick
Expand Down
10 changes: 0 additions & 10 deletions infra/docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ services:
- '0.0.0.0:8318:8318'
- '0.0.0.0:8889:8888'

predictions:
logging: *local-logging
restart: on-failure
build:
dockerfile: ./packages/predictions/predictions.Dockerfile
context: ../..
container_name: predictions
ports:
- '0.0.0.0:5001:5001'

volumes:
postgres-data:
clickhouse-data:
Expand Down
2 changes: 1 addition & 1 deletion infra/docker/start-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source env.sh

# startup the infra

SERVICES="clickhouse kafka postgres redis zookeeper collector predictions"
SERVICES="clickhouse kafka postgres redis zookeeper collector"
BUILD_ARGS="--build-arg OTEL_COLLECTOR_ALPINE_IMAGE_NAME=${OTEL_COLLECTOR_ALPINE_IMAGE_NAME} \
--build-arg OTEL_COLLECTOR_IMAGE_NAME=${OTEL_COLLECTOR_IMAGE_NAME}"

Expand Down
Empty file removed packages/predictions/README.md
Empty file.
914 changes: 0 additions & 914 deletions packages/predictions/poetry.lock

This file was deleted.

14 changes: 0 additions & 14 deletions packages/predictions/predictions.Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions packages/predictions/pyproject.toml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/predictions/src/main.py

This file was deleted.

206 changes: 0 additions & 206 deletions packages/predictions/test.json

This file was deleted.

Loading