I'm trying to create a simple dev env for a web symfony app with docker compose. My problem is when trying to execute composer install I get this error:
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.7) does not satisfy that requirement.
Here's the Composer part of my docker compose file:
composer:
restart: 'no'
image: composer/composer:php7
command: install
volumes:
- .:/app
So that install a php 7.0 and I need at least 7.1. I tried with composer/composer:php7.1 but didn't work.
Any idea on how to do this?
Thanks in advance