Last active
January 14, 2025 09:35
-
-
Save hasinhayder/2c3d3465a785e3a2fe5a3e08feb892e0 to your computer and use it in GitHub Desktop.
Getting up and running with MariaDB and phpMyAdmin using Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
mariadb: | |
image: mariadb:10.8 | |
restart: always | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./mariadb:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_PASSWORD=admin | |
- MYSQL_USER=admin | |
- MYSQL_DATABASE=test | |
- MYSQL_TCP_PORT=3306 | |
phpMyAdmin: | |
image: phpmyadmin | |
restart: always | |
ports: | |
- 8080:80 | |
environment: | |
- PMA_PORT:3307 | |
- PMA_ARBITRARY=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment