DB Connection Issues

Hi - I’m trying to get docker based WP project running on an M1 Mac.

Docker seems to start ok after ‘make install’ and ‘make up’ but when I try to connect to site, I get a ‘database connection error’

Trying to connect to phpmyadmin - I can reach the login but get a ‘connection refused’ when trying to login

Here is the docker-compose detail - would anyone have any idea how to get up and running please ?

TIA

version: ‘3.3’

services:
db:
image: mysql:5.7
platform: linux/x86_64
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_TCP_PORT: 3306

wordpress:
    build:
        context: .
        dockerfile: ./docker/wordpress/Dockerfile
        args:
            - UID=${UID}
            - GID=${GID}
    image: kimco/wordpress
    user: "${UID}:${GID}"
    ports:
        - "8080:80"
        - "443:443"
    restart: always
    environment:
        WORDPRESS_DB_HOST: db:3306
        WORDPRESS_DB_USER: wordpress
        WORDPRESS_DB_PASSWORD: wordpress
        WORDPRESS_DB_NAME: wordpress
    volumes:
        - ./public:/var/www/html

phpmyadmin:
    links:
        - db:db
    depends_on:
        - db
    image: phpmyadmin/phpmyadmin
    platform: linux/x86_64
    restart: always
    ports:
        - "8083:80"
    environment:
        UPLOAD_LIMIT: 500M
        PMA_HOST: db
        MYSQL_ROOT_PASSWORD: root

volumes:
db_data: {}