version: "3"

services:
  # Database
  db:
    #platform: linux/x86_64
    image: mysql:8.1
    volumes:
      - db_data:/var/lib/mysql
    restart: always
    ports:
      - "3306:3306"
    environment:
      MYSQL_ROOT_PASSWORD: hhZXUv*20g4v
      MYSQL_DATABASE: slotsdiamond_node_stg
      MYSQL_USER: slots_admin
      MYSQL_PASSWORD: hhZXUv*20g4v
    networks:
      - mysql-phpmyadmin

  # phpmyadmin
  phpmyadmin:
    depends_on:
      - db
    image: phpmyadmin
    restart: always
    ports:
      - "5000:80"
    environment:
      PMA_HOST: db
      MYSQL_ROOT_PASSWORD: hhZXUv*20g4v
      UPLOAD_LIMIT: 1024000k
    networks:
      - mysql-phpmyadmin

networks:
  mysql-phpmyadmin:

volumes:
  db_data:
