version: '3.8' services: php: build: context: ./docker/php dockerfile: Dockerfile container_name: php-fpm volumes: - ./src:/var/www/html/src - ./vendor:/var/www/html/vendor - ./.env:/var/www/html/.env nginx: image: nginx:alpine container_name: nginx ports: - "8080:80" volumes: - ./src:/var/www/html/src - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf depends_on: - php