dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Compose apps not accessible via domain - missing dokploy-network connection

Open Dimension33 opened this issue 11 months ago • 7 comments

Description

When deploying a Docker Compose app and assigning a domain via Dokploy UI, the app is not accessible (gateway timeout). Traefik labels are added correctly but the container cannot be reached.

Steps to Reproduce

  1. Create a new Compose app in Dokploy
  2. Deploy a simple compose file (e.g., with a web service on port 3000)
  3. Assign a domain to the app in Dokploy UI
  4. Try to access the domain

Expected Behavior

App should be accessible via the assigned domain.

Actual Behavior

  • Gateway timeout (504)
  • Traefik shows the route exists but service is unreachable

Root Cause Analysis

After debugging, we found that Dokploy adds Traefik labels to the compose file but does not:

  1. Add dokploy-network to the service's networks
  2. Add traefik.docker.network=dokploy-network label
  3. Add dokploy-network as an external network in the compose file

This means the container runs on its own isolated compose network, which Traefik (running on dokploy-network) cannot reach.

Workaround

Manually add to compose file:

services:
  my-service:
    networks:
      - default
      - dokploy-network
    labels:
      - traefik.docker.network=dokploy-network

networks:
  dokploy-network:
    external: true

Environment

  • Dokploy: Latest
  • Ubuntu: 24.04.3 LTS
  • Docker: 29.1.2
  • Traefik: v3.6.4

Suggested Fix

When a domain is assigned to a compose app, Dokploy should automatically:

  1. Inject dokploy-network into the service's networks list
  2. Add traefik.docker.network=dokploy-network label
  3. Add dokploy-network as an external network definition

🤖 Generated with Claude Code

Dimension33 avatar Dec 09 '25 08:12 Dimension33

I agree, after updating to v.0.26, all applications created by Compose - return 404 upd Traefik logs:

2025-12-09T18:17:36Z ERR Failed to retrieve information of the docker client and server host error="Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version" providerName=swarm
2025-12-09T18:17:36Z ERR Provider error, retrying in 9.967172181s error="Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version" providerName=swarm

xferqr avatar Dec 09 '25 12:12 xferqr

me too!

midgogo avatar Dec 09 '25 14:12 midgogo

Read our documentation this has been the same behavior as always https://docs.dokploy.com/docs/core/docker-compose/domains#how-it-works read the Notes the second item in the list

Image

Siumauricio avatar Dec 09 '25 22:12 Siumauricio

I agree, after updating to v.0.26, all applications created by Compose - return 404 upd Traefik logs:

2025-12-09T18:17:36Z ERR Failed to retrieve information of the docker client and server host error="Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version" providerName=swarm 2025-12-09T18:17:36Z ERR Provider error, retrying in 9.967172181s error="Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version" providerName=swarm

Read this https://github.com/Dokploy/dokploy/releases/tag/v0.25.7

Siumauricio avatar Dec 09 '25 23:12 Siumauricio

Since this is a question feel free to reopen or open a discussion. thank you

Siumauricio avatar Dec 09 '25 23:12 Siumauricio

It literally says Dokploy does this automatically not that we need to do manually each time and these docker compose files are from the templates

Dimension33 avatar Dec 09 '25 23:12 Dimension33

I had a working domain on my deploy, this error started and I lost the application to a 404 without me knowing about it. This was application from a template.

Pretty much a show stopper for me when I see stability issues like this. The OS upgrades are a security practice.

The v0.25.7 instructions did not solve anything, after executing and even restarting and rebooting.

I get that a solution is difficult or even impossible - but that just makes dokploy unsuitable for my production applications.

scancmdr avatar Dec 12 '25 22:12 scancmdr