Skip to content

Instantly share code, notes, and snippets.

@akosveres
Last active November 24, 2022 02:24
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save akosveres/b7f9173ccb7b00a8db67e5149f410bb5 to your computer and use it in GitHub Desktop.
Save akosveres/b7f9173ccb7b00a8db67e5149f410bb5 to your computer and use it in GitHub Desktop.
Mariadb + phpmyadmin docker-compose
version: "2"
services:
db:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=radio
volumes:
- ./database:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
restart: always
ports:
- 8080:80
volumes:
- /sessions
links:
- db
@aceroAD
Copy link

aceroAD commented Oct 18, 2018

ive use this yml to help me create a server but when i connect to phpmyadmin it appears also a textfield asking me for a server.. and why /sessions is not binded to a host?

@ultrara1n
Copy link

ive use this yml to help me create a server but when i connect to phpmyadmin it appears also a textfield asking me for a server.. and why /sessions is not binded to a host?

remove - PMA_ARBITRARY=1

@ispf72
Copy link

ispf72 commented Jul 14, 2019

non riconosce utente e password dando il seguente messaggio mysqli_real_connect(): (HY000/1130): Host '172.19.0.3' is not allowed to connect to this MariaDB server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment