services:
    web:
        image: nginx:latest
        ports:
        - "80:80"
        volumes:
        - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
        depends_on:
        - app
    app:
        build:
            context: .
            dockerfile: ./php/Dockerfile
    db:
        image: mysql:5.7
        volumes:
        - ./mysql:/var/lib/mysql