Docker with laravel

@Shoaib

1/4. docker-compose.yml

version: '3.8'

networks:
laravel:
name: laravel

services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
container_name: nginx
depends_on:
- php
- pgsql
- redis
ports:
- 8078:80
volumes:
- ./src:/var/www/html
networks:
- laravel

php:
build:
context: .
dockerfile: php.dockerfile
container_name: php
volumes:
- ./src:/var/www/html
networks:
- laravel