fix: persistent nocodb

This commit is contained in:
Andras Bacsai 2022-06-09 15:49:21 +02:00
parent 119f994b50
commit 10f04d2177

View File

@ -27,6 +27,7 @@ export const post: RequestHandler = async (event) => {
const config = { const config = {
image: `${image}:${version}`, image: `${image}:${version}`,
volume: `${id}-nc:/usr/app/data`,
environmentVariables: {} environmentVariables: {}
}; };
if (serviceSecret.length > 0) { if (serviceSecret.length > 0) {
@ -41,6 +42,7 @@ export const post: RequestHandler = async (event) => {
container_name: id, container_name: id,
image: config.image, image: config.image,
networks: [network], networks: [network],
volumes: [config.volume],
environment: config.environmentVariables, environment: config.environmentVariables,
restart: 'always', restart: 'always',
...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}), ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),