version: '3'

services:
  php:
    build:
      context: .
      dockerfile: Dockerfile
    tty: true
    volumes:
      - ./../:/var/www/html
    ports:
      - "8090:80"
    user: "1000:1000"

  mysql:
    image: mysql:5.7
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    volumes:
      - ./volumes/mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: 123456

  phpmyadmin:
    image: phpmyadmin
    restart: always
    ports:
      - "8080:80"
    environment:
      UPLOAD_LIMIT: 10G
      PMA_HOST: mysql
