File tree Expand file tree Collapse file tree
packages/server/src/constants Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ import path from "node:path";
22import Docker from "dockerode" ;
33
44export 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 ;
67export const DOKPLOY_DOCKER_HOST = process . env . DOKPLOY_DOCKER_HOST ;
78export const DOKPLOY_DOCKER_PORT = process . env . DOKPLOY_DOCKER_PORT
89 ? Number ( process . env . DOKPLOY_DOCKER_PORT )
910 : undefined ;
1011
1112export const CLEANUP_CRON_JOB = "50 23 * * *" ;
1213export 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 ,
You can’t perform that action at this time.
0 commit comments