Skip to content

Example .yml for docker install does not work with database in same docker network #2974

@lamachine

Description

@lamachine

Describe the issue
I cannot figure out a setup that lets it connect to postgres
-127.0.0.1 (Localhost) inside a container means "THIS container".
-Hatchet tries to connect to 127.0.0.1:5432, it's looking for a database inside itself.
-It must connect to postgres (the container name) on the shared network.

It just keeps circling the drain, either no logs on api and engine constantly restarting, or both constantly restarting. Cookie errors or can't read keyset or.... If I get both running stably, then I get a 502 error on the dashboard.

Environment

  • ghcr.io/hatchet-dev/hatchet/hatchet-engine:latest
    -ghcr.io/hatchet-dev/hatchet/hatchet-api:latest
    Latest version of docker desktop on Win.
    Supabase running in docker container

Expected behavior
Expected to follow yml config and connect. This is all before I have even tried to connect to the service.

Hatchet API_Engine Startup Failures.md

Code to Reproduce, Logs, or Screenshots
Include a minimal code snippet that reproduces the issue, error logs around the event, or screenshots, if applicable.

Additional context
Anything else that might help us understand or reproduce the problem — e.g. specific page URL, logged-in vs logged-out, related docs or workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions