version: "3.8"

services:
    db:
        image: mariadb:10.9.4
        platform: linux/x86_64
        restart: always
        volumes:
            - "db:/var/lib/mysql"
        environment:
            MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
            MYSQL_DATABASE: ${MYSQL_DATABASE}
            MYSQL_USER: ${MYSQL_USER}
            MYSQL_PASSWORD: ${MYSQL_PASSWORD}
        ports:
            - 3306:3306
        networks:
            - app
    mailr:
        image: mailhog/mailhog
        ports:
        - 1080:8025    
        - 1025:1025    
volumes:
    db:
networks:
    app:                 