docker-compose
#MySQL Service
mysql:
image: mysql:5.7.22
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: 12345
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- dbdata:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- app-network
#PhpMyAdmin субд
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.1.1
restart: always
links:
- mysql
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: 12345
PMA_HOST: mysql
ports:
- 8082:80
при попытке входа под root 12345
Вроде с хостом все правильно