[Bug]: Invalid YAML indentation generated in /etc/dokploy/traefik/dynamic/dokploy.yml breaks Traefik v3 file provider (404 on all domains)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker, typescript, yaml
調査の方向性
まず /etc/dokploy/traefik/dynamic/dokploy.yml を生成するコードを見つけ、servers リストの書き込み方法と、http の下に routers をネストする方法を調べます。報告された Dokploy と Traefik のバージョンを使って問題を再現し、生成された YAML が Traefik に読み込まれることと、デプロイされたドメインが HTTP 200 を返すことを確認します。
索引モデルが issue の本文から書いたものです。
説明
To Reproduce
- Install Dokploy (
v0.31.7) on a fresh VPS (reproduced on both Debian and Ubuntu LTS, with Traefikv3.8.0). - Deploy an application (e.g., an Nginx / Hello World app) and configure a domain (such as a
sslip.iodomain). - Inspect
/etc/dokploy/traefik/dynamic/dokploy.ymland check thedokploy-traefikcontainer logs. - Attempt to access the configured domain via HTTP or
curland observe that Traefik fails to load dynamic file configs and returns404 page not found.
Current vs. Expected behavior
Current Behavior
Dokploy generates /etc/dokploy/traefik/dynamic/dokploy.yml with an unindented list item (- url: http://dokploy:3000 at column 0 under servers:) or routers: at the root level on reload/restart. Traefik v3.8.0 rejects the dynamic file configuration (ERR Error while building configuration... collecting file configs: /etc/dokploy/traefik/dynamic/dokploy.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)) and does not register dynamic routers, resulting in 404 page not found across domains.
Expected Behavior
Dokploy should generate valid YAML in /etc/dokploy/traefik/dynamic/dokploy.yml with proper indentation under servers: (- url: http://dokploy:3000 indented under loadBalancer.servers) and keep routers properly nested under http:, allowing Traefik to load dynamic routers cleanly and return HTTP 200 for deployed applications.
Provide environment information
Operating System:
OS: Ubuntu LTS (also tested on Debian)
Arch: x86_64
Dokploy version: v0.31.7
VPS Provider: Contabo
What applications/services are you trying to deploy?
Nginx / Hello World demo app, Next.js / web apps, database
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Reproduced on a fresh Contabo VPS after reinstalling from Debian to Ubuntu LTS with traefik:v3.8.0 and Dokploy v0.31.7 (dokploy-traefik connected to dokploy-network). Before upgrading to v0.31.7 (on v0.31.6), routing worked without this issue. Manually fixing the indentation of - url: http://dokploy:3000 in /etc/dokploy/traefik/dynamic/dokploy.yml immediately restored the dynamic routers in Traefik (router-1@file) and returned HTTP 200.
Generated /etc/dokploy/traefik/dynamic/dokploy.yml:
http:
routers: {}
services:
dokploy-service-app:
loadBalancer:
servers:
- url: http://dokploy:3000
passHostHeader: true
### Will you send a PR to fix it?
Yes
- 主要言語
- TypeScript
- スター
- 38.8k
- フォーク
- 3.2k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 117
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Dokploy/dokploy のほかの issue
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistently対応中かも @BitPluto が今日担当しました。 オープンneeds-triage🔍
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
Dokploy/dokploy#6203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab対応中かも @AyhamJo7 が 7 日前に担当しました。 オープンneeds-triage🔍
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Dokploy/dokploy#6115 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)対応中かも @ghazy2001 が 13 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6051 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read fails対応中かも @PAtreju が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Dokploy/dokploy#6029 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Volume backup silently uploads an empty tar when the volume does not exist on the host (stack prefix missing / service on swarm worker)対応中かも @imrja8 が 1 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Dokploy/dokploy#6022 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Dokploy/dokploy の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ardia-browser/ardia#6391 ·
メンテナーはふだん 1 日以内に返信
-
Feature:Actions/ConnectorTypes Team:ResponseOps
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
elastic/kibana#309028 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🔨 tool 🧰 library
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DISIC/teleservice-conformite#230 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
rothgar/rabble.radio#410 ·
メンテナーはふだん 1 日以内に返信