version: '3.7'

services:
  php:
    image: php
    working_dir: /var/www
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - 9000
    volumes:
      - ./:/var/www
    environment:
      - APP_NAME=${APP_APP_NAMEENV}
      - APP_ENV=${APP_ENV}
      - APP_KEY=${APP_KEY}
      - APP_DEBUG=${APP_DEBUG}
      - APP_URL=${APP_URL}
      - DB_CONNECTION=${DB_CONNECTION}
  web:
    image: nginx:alpine
    volumes:
    - ./:/var/www
    - ./nginx.conf:/etc/nginx/conf.d/default.conf
    ports:
    - "80:80"
