version: '3' services: web: build: context: . args: PHP_VERSION: 7.4 ports: - "9000:9000" db: image: mysql:5.7 environment: MYSQL_DATABASE: laravel MYSQL_USER: laravel MYSQL_PASSWORD: secret MYSQL_ROOT_PASSWORD: secret ports: - "3306:3306" tests: build: context: . args: PHP_VERSION: 7.4 command: bash -c "composer install && php artisan migrate --seed && vendor/bin/phpunit" links: - db - redis acceptance: image: node:14 working_dir: /app volumes: - ./:/app command: bash -c "npm install && gulp build" links: - web - redis redis: image: redis:6.0 ports: - "6379:6379"