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
dep bum dockerfile
peaklabs-dev725de2fe9ff4
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfileindex 37e0481bb9..b8efe338b6 100644--- a/docker/prod/Dockerfile+++ b/docker/prod/Dockerfile@@ -1,4 +1,15 @@-FROM serversideup/php:8.2-fpm-nginx-v2.2.1 AS base+# Versions+# https://hub.docker.com/r/serversideup/php/tags?name=8.3-fpm-nginx-alpine+ARG SERVERSIDEUP_PHP_VERSION=8.2-fpm-nginx-v2.2.1+# https://github.com/minio/mc/releases+ARG MINIO_VERSION=RELEASE.2024-11-05T11-29-45Z+# https://github.com/cloudflare/cloudflared/releases+ARG CLOUDFLARED_VERSION=2024.11.0+# https://www.postgresql.org/support/versioning/ - Can not updated automatically so keep it at 15+ARG POSTGRES_VERSION=15+++FROM serversideup/php:${SERVERSIDEUP_PHP_VERSION} AS baseWORKDIR /var/www/htmlCOPY composer.json composer.lock ./@@ -11,12 +22,11 @@ COPY --from=base --chown=9999:9999 /var/www/html .RUN npm installRUN npm run build-FROM serversideup/php:8.2-fpm-nginx-v2.2.1+FROM serversideup/php:${SERVERSIDEUP_PHP_VERSION}ARG TARGETPLATFORM-# https://github.com/cloudflare/cloudflared/releases-ARG CLOUDFLARED_VERSION=2024.4.1-ARG POSTGRES_VERSION=15+ARG CLOUDFLARED_VERSION+ARG POSTGRES_VERSIONARG CI=trueWORKDIR /var/www/html@@ -29,7 +39,7 @@ RUN curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmoRUN echo deb [arch=amd64,arm64,ppc64el signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main | tee -a /etc/apt/sources.list.d/postgresql.listRUN apt-get update-RUN apt-get install postgresql-client-$POSTGRES_VERSION -y+RUN apt-get install postgresql-client-${POSTGRES_VERSION} -y# Coolify requirementsRUN apt-get install -y php8.2-pgsql openssh-client git git-lfs jq lsof vim@@ -71,5 +81,5 @@ RUN { \echo 'post_max_size=256M'; \} > /etc/php/current_version/cli/conf.d/upload-limits.ini-COPY --from=minio/mc:RELEASE.2024-09-09T07-53-10Z /usr/bin/mc /usr/bin/mc+COPY --from=minio/mc:${MINIO_VERSION} /usr/bin/mc /usr/bin/mcRUN chmod +x /usr/bin/mc