version: "3.8"

services:
    nginx:
        ports:
            - "8080:80"

    fpm:
        volumes:
            - .:/srv/app:cached
        depends_on:
            - mailhog
        env_file:
            - .env

    mailhog:
        image: mailhog/mailhog
        ports:
            - "8025:8025"

    db:
        image: mysql:5.7
        restart: always
        ports:
            - 33306:3306
        volumes:
            - /Users/przemek/docker_volumes/akita/mysql:/var/lib/mysql
        environment:
            - "MYSQL_DATABASE=akita_api"
            - "MYSQL_ALLOW_EMPTY_PASSWORD=yes"