fix: persistent nocodb
This commit is contained in:
parent
119f994b50
commit
10f04d2177
@ -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}`] } : {}),
|
||||||
|
Loading…
Reference in New Issue
Block a user