fix: base64-encode docker_compose_raw for Coolify create endpoint
Made-with: Cursor
This commit is contained in:
@@ -527,7 +527,8 @@ export async function createDockerComposeApp(
|
|||||||
destination_uuid: opts.destinationUuid ?? COOLIFY_DEFAULT_DESTINATION_UUID,
|
destination_uuid: opts.destinationUuid ?? COOLIFY_DEFAULT_DESTINATION_UUID,
|
||||||
name: opts.name,
|
name: opts.name,
|
||||||
description: opts.description,
|
description: opts.description,
|
||||||
docker_compose_raw: opts.composeRaw,
|
// Coolify requires docker_compose_raw to be base64-encoded
|
||||||
|
docker_compose_raw: Buffer.from(opts.composeRaw, 'utf8').toString('base64'),
|
||||||
instant_deploy: opts.instantDeploy ?? false,
|
instant_deploy: opts.instantDeploy ?? false,
|
||||||
});
|
});
|
||||||
const created = await coolifyFetch('/applications/dockercompose', {
|
const created = await coolifyFetch('/applications/dockercompose', {
|
||||||
|
|||||||
Reference in New Issue
Block a user