This is the legacy version of our PHP Composer Docker image, which runs PHP through Apache’s mod_php. It has been replaced by our PHP-FPM-based image.
This legacy image will no longer receive new features. We will continue providing updates for as long as upstream support and compatible packages remain available.
For new deployments, use cuteminded/php-composer.
Available Tags
| Tag | Description |
|---|---|
latest |
PHP with Composer |
node |
PHP with Composer and Node.js |
laravel |
Modified version of latest for laravel |
Optional Environment Variables
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. |
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...
};