Skip to content

Instantly share code, notes, and snippets.

@hasinhayder
Created July 10, 2022 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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:
- 3307: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