Provides a robust starting point for hosting modern PHP applications in a containerized environment.
510
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.
| Tag | Description |
|---|---|
latest | PHP with Composer |
node | PHP with Composer and Node.js |
laravel | Modified version of latest for laravel |
You can configure the container behavior using the following optional environment variables:
| Variable | Default | Description |
|---|---|---|
LARAVEL_CLEAR | no | Runs Laravel's clear commands at startup when set to yes. |
LARAVEL_SCHEDULE | no | Runs the Laravel scheduler every minute if set to yes. |
VITE | no | Starts the Vite development server when set to yes. |
5173If 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...
};
Content type
Image
Digest
sha256:3a6550e48…
Size
222.8 MB
Last updated
1 day ago
docker pull cuteminded/php-composer-legacy