Skip to content

Instantly share code, notes, and snippets.

@hasinhayder
Created July 10, 2022 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasinhayder/d6ee62129427f9817c94134cadc12d92 to your computer and use it in GitHub Desktop.
Save hasinhayder/d6ee62129427f9817c94134cadc12d92 to your computer and use it in GitHub Desktop.
mariadb + adminer
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
adminer:
image: adminer
restart: always
ports:
- 8080:8080
@hasinhayder
Copy link
Author

then head to localhost:8080 and connect to mariadb using the following credentials

server: mariadb
user: root or admin
password: root or admin

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