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
31 changes: 31 additions & 0 deletions docker-compose-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,37 @@ services:
condition: service_healthy
restart: on-failure

# Phase I: ghcr.io/omnibioai/omnibioai-security-audit-worker is now
# published by CI (security-audit PR #7). Image-only, no build: (matches
# every other service in this file); env vars and depends_on mirror
# docker-compose.yml's security-audit-worker exactly (same
# AuditConfig.EVENT_SIGNING_SECRET/DATABASE_URL consumers -- see
# worker/main.py and db/session.py in that repo), just with this file's
# required (:?) secret guards instead of dev's silently-defaulting ones.
# Note: unlike the security-audit (API) entry directly above, this
# worker entry includes AUDIT_DATABASE_URL and a mysql depends_on --
# the worker is the process that actually writes audit_events rows
# (Sink.write() in consumers/sink.py), so it needs the DB connection
# regardless of whether the API entry in this particular file currently
# has it (a pre-existing gap between this file and docker-compose.
# release.yml's fuller security-audit block, not introduced or fixed
# here -- out of scope for this change). No ports: -- Dockerfile.worker
# doesn't EXPOSE anything, it's a Redis Streams consumer loop, not an
# HTTP service.
security-audit-worker:
image: ghcr.io/omnibioai/omnibioai-security-audit-worker:latest
environment:
PYTHONUNBUFFERED: "1"
REDIS_URL: redis://redis:6379
JWT_SECRET: ${AUTH_SECRET_KEY:?AUTH_SECRET_KEY must be set}
AUDIT_DATABASE_URL: mysql+pymysql://root:${MYSQL_ROOT_PASSWORD:?MYSQL_ROOT_PASSWORD must be set}@mysql:3306/omnibioai_audit
depends_on:
redis:
condition: service_healthy
mysql:
condition: service_healthy
restart: on-failure

api-gateway:
image: ghcr.io/omnibioai/omnibioai-api-gateway:latest
ports:
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,30 @@ services:
condition: service_healthy
restart: on-failure

# Phase I: the follow-up flagged in this file's own comment above --
# ghcr.io/omnibioai/omnibioai-security-audit-worker is now published by
# CI (security-audit PR #7). Image-only, no build: (matches every other
# service in this file); env vars and depends_on mirror
# docker-compose.yml's security-audit-worker exactly (same
# AuditConfig.EVENT_SIGNING_SECRET/DATABASE_URL consumers -- see
# worker/main.py and db/session.py in that repo), just with this file's
# required (:?) secret guards instead of dev's silently-defaulting ones.
# No ports: -- Dockerfile.worker doesn't EXPOSE anything, it's a Redis
# Streams consumer loop, not an HTTP service.
security-audit-worker:
image: ghcr.io/omnibioai/omnibioai-security-audit-worker:latest
environment:
PYTHONUNBUFFERED: "1"
REDIS_URL: redis://redis:6379
JWT_SECRET: ${AUTH_SECRET_KEY:?AUTH_SECRET_KEY must be set}
AUDIT_DATABASE_URL: mysql+pymysql://root:${MYSQL_ROOT_PASSWORD:?MYSQL_ROOT_PASSWORD must be set}@mysql:3306/omnibioai_audit
depends_on:
redis:
condition: service_healthy
mysql:
condition: service_healthy
restart: on-failure

api-gateway:
image: ghcr.io/omnibioai/omnibioai-api-gateway:latest
ports:
Expand Down
Loading