Skip to content

Commit

Permalink
fix: persistent nocodb
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jun 9, 2022
1 parent 119f994 commit 10f04d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/services/[id]/nocodb/start.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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}`] } : {}),
Expand Down

0 comments on commit 10f04d2

Please sign in to comment.