Sign inSign up

cuteminded/php-composer

By cuteminded

•Updated about 18 hours ago

Provides a robust starting point for hosting modern PHP applications in a containerized environment.

Image
0

10K+

cuteminded/php-composer repository overview

We're building a new version of our PHP Composer Docker images using PHP-FPM.

If you need the legacy images, use cuteminded/php-composer-legacy⁠.

⁠Available Tags

TagDescription
latestPHP with Composer
nodePHP with Composer and Node.js
laravelModified version of latest for laravel

⁠Optional Environment Variables

You can configure the container behavior using the following optional environment variables:

VariableDefaultDescription
LARAVEL_CLEARnoRuns Laravel's clear commands at startup when set to yes.
LARAVEL_SCHEDULEnoRuns the Laravel scheduler every minute if set to yes.
VITEnoStarts the Vite development server when set to yes.

⁠Vite Setup

  • Default Port: 5173

⁠Troubleshooting: Vite Server Not Working in Container?

If your Vite dev server isn’t accessible from outside the container, ensure your vite.config.js includes proper settings for external access and HMR (Hot Module Replacement):

export default {
  // other settings...
  server: {
    host: "0.0.0.0",
    port: 5173,
    strictPort: true,
    hmr: {
      host: "localhost",
    },
  },
  // other settings...
};

Tag summary

Content type

Image

Digest

sha256:07aa236b9…

Size

231.1 MB

Last updated

about 18 hours ago

docker pull cuteminded/php-composer