An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: replace docker compose with docker-compose on CSB
Andras Bacsaic2c9d992e770
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.tsindex 369b3f2b5b..929aafc081 100644--- a/apps/api/src/lib/common.ts+++ b/apps/api/src/lib/common.ts@@ -579,6 +579,11 @@ export async function executeDockerCmd({ dockerId, command }: { dockerId: string} else {engine = 'unix:///var/run/docker.sock'}+ if (process.env.CODESANDBOX_HOST) {+ if (command.startsWith('docker compose')) {+ command = command.replace(/docker compose/gi, 'docker-compose')+ }+ }return await asyncExecShell(`DOCKER_BUILDKIT=1 DOCKER_HOST="${engine}" ${command}`);@@ -873,11 +878,11 @@ export function generateDatabaseConfiguration(database: any, arch: string):}if (isARM(arch)) {configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;- configuration.environmentVariables = {- POSTGRES_PASSWORD: dbUserPassword,- POSTGRES_USER: dbUser,- POSTGRES_DB: defaultDatabase- }+ configuration.environmentVariables = {+ POSTGRES_PASSWORD: dbUserPassword,+ POSTGRES_USER: dbUser,+ POSTGRES_DB: defaultDatabase+ }}return configuration} else if (type === 'redis') {