version: '3' services: app: build: context: ./docker dockerfile: Dockerfile-app ports: - 80:80 volumes: - .:/var/www/rvr mariadb: image: mariadb:10.3 ports: - 3306:3306 volumes: - mysql:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: 'root' MYSQL_DATABASE: 'rvr' MYSQL_USER: 'rvr' MYSQL_PASSWORD: 'rvr' mail: image: marcopas/docker-mailslurper:latest ports: - 8080:8080 - 8085:8085 volumes: mysql: