From 10f04d217752f427bf4920a021d2ce795023132a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 9 Jun 2022 15:49:21 +0200 Subject: [PATCH] fix: persistent nocodb --- src/routes/services/[id]/nocodb/start.json.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/services/[id]/nocodb/start.json.ts b/src/routes/services/[id]/nocodb/start.json.ts index bf3a702df..cd45a0b2b 100644 --- a/src/routes/services/[id]/nocodb/start.json.ts +++ b/src/routes/services/[id]/nocodb/start.json.ts @@ -27,6 +27,7 @@ export const post: RequestHandler = async (event) => { const config = { image: `${image}:${version}`, + volume: `${id}-nc:/usr/app/data`, environmentVariables: {} }; if (serviceSecret.length > 0) { @@ -41,6 +42,7 @@ export const post: RequestHandler = async (event) => { container_name: id, image: config.image, networks: [network], + volumes: [config.volume], environment: config.environmentVariables, restart: 'always', ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),