Skip to content

Missing network information in Docker Compose #543

Closed

Description

@GREENRAT-K405

When using concore build --type docker --compose, the generated docker-compose.yml does not include a shared Docker network definition. This will make all the = ZMQ-based nodes fail when trying to connect to each other across containers, because each container resolves localhost as itself rather than the peer node.

From the perspective of ZMQ integration, the current compose generation is logically incomplete. ZMQ-based nodes rely on TCP sockets to stablish direct peer-to-peer connections. However, inside a Docker container, localhost resolves to the container's own isolated loopback interface not the host, and not the peer containers.
The graph's edges (ZMQ ports) are completely severed.

Activity

  1. GREENRAT-K405 commented on Apr 12, 2026

    @GREENRAT-K405
    ContributorAuthor

    @pradeeban please have a look, I think this needs a fix!

  2. pradeeban commented on Apr 12, 2026

    @pradeeban
    Member

    @GREENRAT-K405 sure, go ahead.

  3. GREENRAT-K405 commented on Apr 14, 2026

    @GREENRAT-K405
    ContributorAuthor

    @pradeeban ,during fixing this issue, I have also discovered that the Docker compose suffered from compounding issues regarding race conditions, undocumented named volumes, and missing build contexts.

  4. pradeeban commented on Apr 14, 2026

    @pradeeban
    Member

    Interesting!

  5. GREENRAT-K405 commented on Apr 14, 2026

    @GREENRAT-K405
    ContributorAuthor

    I will raise a PR soon with the best possible solution as of right now, but I believe we will be working on this part a lot as the specification for deps of the different nodes get more clear during the actual coding period!

  6. pradeeban commented on Apr 14, 2026

    @pradeeban
    Member

    Yes, a lot of this is meant to be fixed during the GSoC coding period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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