Answer the question
In order to leave comments, you need to log in
Why won't PMA let me connect?
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
Answer the question
In order to leave comments, you need to log in
Pma and mysql on different networks. pma should have the same
networks:
- app-network
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question