From 4afd2d11fa200cedd1958654df31c2ce80b1196f Mon Sep 17 00:00:00 2001 From: Marukome0743 Date: Tue, 19 Aug 2025 18:57:03 +0900 Subject: [PATCH] feat: bump traefik to v3.2.2 --- apps/dokploy/setup.ts | 2 +- packages/server/src/setup/traefik-setup.ts | 2 +- packages/server/src/utils/docker/domain.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/setup.ts b/apps/dokploy/setup.ts index 7abf9fa2d..a889e4dd5 100644 --- a/apps/dokploy/setup.ts +++ b/apps/dokploy/setup.ts @@ -21,7 +21,7 @@ import { await initializeNetwork(); createDefaultTraefikConfig(); createDefaultServerTraefikConfig(); - await execAsync("docker pull traefik:v3.1.2"); + await execAsync("docker pull traefik:v3.2.2"); await initializeStandaloneTraefik(); await initializeRedis(); await initializePostgres(); diff --git a/packages/server/src/setup/traefik-setup.ts b/packages/server/src/setup/traefik-setup.ts index ccdfa30f8..614d5702b 100644 --- a/packages/server/src/setup/traefik-setup.ts +++ b/packages/server/src/setup/traefik-setup.ts @@ -13,7 +13,7 @@ export const TRAEFIK_PORT = Number.parseInt(process.env.TRAEFIK_PORT!, 10) || 80; export const TRAEFIK_HTTP3_PORT = Number.parseInt(process.env.TRAEFIK_HTTP3_PORT!, 10) || 443; -export const TRAEFIK_VERSION = process.env.TRAEFIK_VERSION || "3.1.2"; +export const TRAEFIK_VERSION = process.env.TRAEFIK_VERSION || "3.2.2"; export interface TraefikOptions { env?: string[]; diff --git a/packages/server/src/utils/docker/domain.ts b/packages/server/src/utils/docker/domain.ts index 0ce138d70..4bd38f874 100644 --- a/packages/server/src/utils/docker/domain.ts +++ b/packages/server/src/utils/docker/domain.ts @@ -254,6 +254,9 @@ export const addDomainToCompose = async ( if (!labels.includes("traefik.docker.network=dokploy-network")) { labels.unshift("traefik.docker.network=dokploy-network"); } + if (!labels.includes("traefik.swarm.network=dokploy-network")) { + labels.unshift("traefik.swarm.network=dokploy-network"); + } } }