version: '3.4' services: php7.1: build: context: . dockerfile: docker/php/Dockerfile_php_7_1 target: php7.1 env_file: .env volumes: - './:/app' - './docker/php/php.ini:/usr/local/etc/php/php.ini:ro' depends_on: - mongodb - sftp - ftp php7.2: build: context: . dockerfile: docker/php/Dockerfile_php_7_2 target: php7.2 env_file: .env volumes: - './:/app' - './docker/php/php.ini:/usr/local/etc/php/php.ini:ro' depends_on: - mongodb - sftp - ftp php7.3: build: context: . dockerfile: docker/php/Dockerfile_php_7_3 target: php7.3 env_file: .env volumes: - './:/app' - './docker/php/php.ini:/usr/local/etc/php/php.ini:ro' depends_on: - mongodb - sftp - ftp mongodb: image: mongo sftp: image: atmoz/sftp:alpine command: gaufrette:gaufrette:::gaufrette ftp: build: context: ./docker/ftp environment: PUBLICHOST: 'ftp'