I have no intention of updating the system
@chron You should, given that version of Laravel—and the version of PHP it will require—will have long stopped receiving important security updates.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to run a laravel application on a docker.
#Dockerfile
FROM php:7.4-fpm-alpine
RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-enable pdo_mysql
#docker-compose.yml
version: '3'
networks:
laravel:
services:
mysql:
image: mysql:8
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_DATABASE: 'docker-test'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'secret'
SERVICE_NAME: mysql
SERVICE_TAGS: dev
networks:
- laravel
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "8088:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- laravel
php:
build:
dockerfile: Dockerfile
context: .
container_name: php
ports:
- "9000:9000"
volumes:
- ./src:/var/www/html
networks:
- laravel
composer:
image: composer:1.9
container_name: composer
volumes:
- ./src:/var/www/html
working_dir: /var/www/html
depends_on:
- php
networks:
- laravel
When I run docker compose run --rm composer create-project laravel/laravel . "5.8.*". This is the output I'm getting:
[+] Creating 1/1
✔ Container php Recreated 4.6s
[+] Running 1/1
✔ Container php Started 2.2s
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v5.8.35)
- Installing laravel/laravel (v5.8.35): Downloading (100%)
Created project in .
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Yes, that's all it is. I run composer install but I'm only getting
[+] Creating 1/0
✔ Container php Running 0.0s
Loading composer repositories with package information
Warning from https://packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
I'm getting an error when I use composer:latest in docker-compose.yml
[+] Building 24.9s (5/7) docker:default
[+] Building 25.1s (5/7) docker:default
=> => transferring dockerfile: 143B 0.1s
=> [php internal] load metadata for docker.io/library/php:7.4-fpm-alpine 4.8s
=> [php auth] library/php:pull token for registry-1.docker.io 0.0s
=> CACHED [php 1/3] FROM docker.io/library/php:7.4-fpm-alpine@sha256:0aeb129a60daff2874c5c70fcd9d88cdf3015b4fb4cc7c3f1a32a21e84631036 0.0s
=> [php 2/3] RUN docker-php-ext-install pdo pdo_mysql 19.9s
=> => # (5/26) Installing autoconf (2.71-r0)
=> => # (6/26) Installing pkgconf (1.8.1-r0)
=> => # (7/26) Installing dpkg-dev (1.21.8-r0)
=> => # (8/26) Installing dpkg (1.21.8-r0)
=> => # (9/26) Installing libmagic (5.41-r0)
=> => # (10/26) Installing file (5.41-r0)
In CreateProjectCommand.php line 421:
Could not find package laravel/laravel with version 5.8.* in a version installable using your PHP version, PHP extensions and Composer version.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
I have no intention of updating the system, I just want to see the UI that's why I'm coming back to it.
Please or to participate in this conversation.