From 6c7c69052eae08c28dd6ac380cb6b116a9c0a057 Mon Sep 17 00:00:00 2001 From: RichyHBM Date: Sun, 19 Nov 2023 19:13:09 +0000 Subject: [PATCH] Specify filename to use for new stacks --- README.md | 1 + backend/stack.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d7b08bc..186753cd 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ services: environment: # Tell Dockge where is your stacks directory - DOCKGE_STACKS_DIR=/opt/stacks + - COMPOSE_FILENAME=docker-compose.yml #Specify filename to use when creating new stack ``` ## How to Update diff --git a/backend/stack.ts b/backend/stack.ts index 922dad89..b526a4b8 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -24,7 +24,7 @@ export class Stack { protected _status: number = UNKNOWN; protected _composeYAML?: string; protected _configFilePath?: string; - protected _composeFileName: string = "compose.yaml"; + protected _composeFileName: string = process.env.COMPOSE_FILENAME || "compose.yaml"; protected server: DockgeServer; protected combinedTerminal? : Terminal;