Deployed the environment for the site through docker-compose . The site is on laravel and it needs to perform a composer install , but the execution of this command says that I have an old version of php . It turns out that you need to install the composer in a container? Maybe there are other solutions?
Docker-compose.yml file
version: '2' services: nginx: image: evild/alpine-nginx:1.9.15-openssl container_name: lemp_nginx restart: always links: - php volumes: - ./project:/var/www/ - ./docker/nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro - ./docker/nginx/conf.d:/etc/nginx/conf.d:ro ports: - 8080:80 - 443:443 php: image: evild/alpine-php:7.0.6 working_dir: /var/www container_name: lemp_php restart: always volumes: - ./project:/var/www/ depends_on: - db links: - db environment: - DB_NAME=mysql - DB_USER=root - DB_PASSWORD=password db: image: mariadb:latest container_name: lemp_mariadb restart: always volumes: - db-data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=password volumes: db-data: driver: local
composer? - Mikhail Vaysman