Skip to content

[Bug] docker-compose.yml: missing healthcheck, restart policy #2050

Description

@sriram687

Summary

Three Docker configuration gaps found across docker-compose.yml and Dockerfile.transformers
that affect container reliability, readiness detection, and code consistency.


Bugs

Bug 1 · Missing healthcheck — docker-compose.yml
Both services expose a /health endpoint but neither has a healthcheck defined in compose,
so Docker cannot detect if they're actually ready or unhealthy.

Bug 2 · No restart policy — docker-compose.yml
Neither service defines a restart policy. A crash (e.g. OOM during NLP model load)
leaves the container dead with no automatic recovery.


Affected Files

File Change
docker-compose.yml Added healthcheck + restart to both services

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions