Skip to content

Instantly share code, notes, and snippets.

@hasinhayder
Last active July 3, 2024 19:10
Show Gist options
  • Save hasinhayder/2c3d3465a785e3a2fe5a3e08feb892e0 to your computer and use it in GitHub Desktop.
Save hasinhayder/2c3d3465a785e3a2fe5a3e08feb892e0 to your computer and use it in GitHub Desktop.
Getting up and running with MariaDB and phpMyAdmin using Docker
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