Skip to content

fix(compose): repair docker-compose and add redis service - #16

Merged
Metbcy merged 1 commit into
mainfrom
fix/docker-compose-redis-service
Jun 3, 2026
Merged

fix(compose): repair docker-compose and add redis service#16
Metbcy merged 1 commit into
mainfrom
fix/docker-compose-redis-service

Conversation

@Metbcy

@Metbcy Metbcy commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Problem

The squash-merge of #15 left docker-compose.yml in a broken state:

  • A duplicated frontend block tail (lines 34-39 of the merged file: a stray ports/environment/depends_on re-stating the frontend service after volumes: had already opened).
  • A redis-data: volume declared but no redis service consuming it.
  • The obsolete version: "3.9" key, which Compose v2 warns about.

docker compose config was loadable but the file was clearly half-finished, and SECURESCAN_REDIS_URL had no in-cluster target.

Fix

  • Remove the duplicated frontend tail.
  • Drop the version key.
  • Add a real redis:7-alpine service with appendonly yes and a redis-cli ping healthcheck.
  • Backend depends_on: [redis] and reads SECURESCAN_REDIS_URL + SECURESCAN_REDIS_KEY_PREFIX from the environment, so a default docker compose up now wires the pubsub backplane end to end without extra configuration.

Verification

$ docker compose config --quiet
$ # exits 0, no warnings

Cross-instance fanout was already proven against a real Redis 7 in #15's tests; this PR just makes the default deployment path actually start one.

PR #15 squash left a malformed docker-compose.yml: a duplicated
frontend block tail, a redis-data volume but no redis service, and
the obsolete version key. Repair the structure and add a real
redis:7-alpine service so SECURESCAN_REDIS_URL is wired end to end.

- Drop obsolete version field
- Add redis service with appendonly persistence and ping healthcheck
- Backend now depends_on redis and accepts SECURESCAN_REDIS_URL and
  SECURESCAN_REDIS_KEY_PREFIX from the environment
- Compose now validates with docker compose config
@Metbcy
Metbcy merged commit c524984 into main Jun 3, 2026
2 checks passed
@Metbcy
Metbcy deleted the fix/docker-compose-redis-service branch June 3, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant