version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: laravel-app
    restart: unless-stopped
    working_dir: /var/www
    volumes:
      - .:/var/www              # Mount code
      - vendor:/var/www/vendor 

    ports:
      - "8000:8000"

volumes:
  vendor:
