Skip to content

fix(docker): docker-compose-dev-essentials.yaml uses a different network when run standalone #2261

Description

@NKchinmayanandu

Description

docker-compose-dev-essentials.yaml does not declare a network, while
docker-compose.yaml explicitly names its default network unstract-network.

As a result, running the essentials compose file standalone creates a
docker_default network:

docker compose -f docker-compose-dev-essentials.yaml up -d db

The same db service under the full compose configuration uses:

unstract-network

This is inconsistent with the networking configuration inside the essentials
file itself, where Traefik is explicitly configured with:

--providers.docker.network=unstract-network

Reproduction

From the docker/ directory:

docker compose -f docker-compose-dev-essentials.yaml up -d db

docker inspect unstract-db --format \
'NetworkMode={{.HostConfig.NetworkMode}} Networks={{json .NetworkSettings.Networks}}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions