Skip to content

Instantly share code, notes, and snippets.

@zayniddindev
Created April 1, 2024 02:29
Show Gist options
  • Select an option

  • Save zayniddindev/569a0e6fca8565fb9f32aff7f28d565b to your computer and use it in GitHub Desktop.

Select an option

Save zayniddindev/569a0e6fca8565fb9f32aff7f28d565b to your computer and use it in GitHub Desktop.
Docker compose to run MySQL with Adminer
version: '3.7'
services:
mysql:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: 1234
ports:
- 3306:3306
volumes:
- mysql_data:/var/lib/mysql
adminer:
image: adminer:latest
environment:
ADMINER_DEFAULT_SERVER: mysql
ports:
- 8080:8080
volumes:
mysql_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment