version: '3.5'

services:
    web:
        container_name: php-contacts-app-web
        env_file:
            - .env
        build:
            dockerfile: ./sample-apps/contacts-app/docker/web/Dockerfile
            context: ../../
        ports:
            - 8999:80
        volumes:
            - ./src:/app/src

    codecept:
        container_name: php-contacts-app-codecept
        build:
            dockerfile: sample-apps/contacts-app/docker/codecept/Dockerfile
            context: ../../
        depends_on:
            - web
        volumes:
            - ./tests:/project/tests
