Skip to content

Commit 178f4fb

Browse files
committed
fix: update Docker API version constant to use DOKPLOY environment variable
1 parent 2c07a4b commit 178f4fb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/server/src/constants/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ import path from "node:path";
22
import Docker from "dockerode";
33

44
export const IS_CLOUD = process.env.IS_CLOUD === "true";
5-
export const DOCKER_API_VERSION = process.env.DOCKER_API_VERSION;
5+
export const DOKPLOY_DOCKER_API_VERSION =
6+
process.env.DOKPLOY_DOCKER_API_VERSION;
67
export const DOKPLOY_DOCKER_HOST = process.env.DOKPLOY_DOCKER_HOST;
78
export const DOKPLOY_DOCKER_PORT = process.env.DOKPLOY_DOCKER_PORT
89
? Number(process.env.DOKPLOY_DOCKER_PORT)
910
: undefined;
1011

1112
export const CLEANUP_CRON_JOB = "50 23 * * *";
1213
export const docker = new Docker({
13-
...(DOCKER_API_VERSION && {
14-
version: DOCKER_API_VERSION,
14+
...(DOKPLOY_DOCKER_API_VERSION && {
15+
version: DOKPLOY_DOCKER_API_VERSION,
1516
}),
1617
...(DOKPLOY_DOCKER_HOST && {
1718
host: DOKPLOY_DOCKER_HOST,

0 commit comments

Comments
 (0)