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: wp + mysql on arm
Andras Bacsaic431cee51764
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.tsindex dfdde81d23..e2afeb3e51 100644--- a/apps/api/src/lib/common.ts+++ b/apps/api/src/lib/common.ts@@ -972,7 +972,7 @@ export function generateDatabaseConfiguration(database: any, arch: string): Data}}export function isARM(arch: string) {- if (arch === 'arm' || arch === 'arm64') {+ if (arch === 'arm' || arch === 'arm64' || arch === 'aarch' || arch === 'aarch64') {return true;}return false;diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.tsindex 2d4c47caa1..56ffb2e1f8 100644--- a/apps/api/src/lib/services/handlers.ts+++ b/apps/api/src/lib/services/handlers.ts@@ -34,7 +34,7 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, faconst { id } = request.params;const teamId = request.user.teamId;const service = await getServiceFromDB({ id, teamId });- const arm = isARM(service.arch)+ const arm = isARM(process.arch);const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } =service;@@ -107,14 +107,16 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, faif (template.services[s].ports?.length > 0) {port = template.services[s].ports[0]}- console.log({ arm })- console.log(template.services[s].imageArm)+ let image = template.services[s].image+ if (arm && template.services[s].imageArm) {+ image = template.services[s].imageArm+ }config[s] = {container_name: s,build: template.services[s].build || undefined,command: template.services[s].command,entrypoint: template.services[s]?.entrypoint,- image: arm ? template.services[s].imageArm : template.services[s].image,+ image,expose: template.services[s].ports,...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),volumes: Array.from(volumes),@@ -126,6 +128,7 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, falabels: makeLabelForServices(type),...defaultComposeConfiguration(network),}+ console.log(config[s].image)// Generate files for buildsif (template.services[s]?.files?.length > 0) {