I am doing a microservice course and I have downloaded this project from the website course but the project isn't working.
I have a PHP Lumen project and this is its docker-compose.yml, I had updated its composer dependencies before run because my computer has only PHP 8.1:
version: '3.7'
services:
web-academico:
build: ./php-web
volumes:
- ./php-web/:/app
- type: bind
source: ./php-web.sh
target: /app/entrypoint.sh
working_dir: /app
command: sh ./entrypoint.sh
ports:
- 8080:8080
And when I run this docker-composer, I have this message error:
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.21. in /app/vendor/composer/platform_check.php on line 24
I tried to put the TAG "image: php:8.1.0-fpm" but isn't work.
The entrypoint.sh is blank.
How can I solve it? And why docker is run without TAG image in docker-compose.yml?
I've forgot about Dockerfile and the configuration was in that file.