Created
April 1, 2024 02:29
-
-
Save zayniddindev/569a0e6fca8565fb9f32aff7f28d565b to your computer and use it in GitHub Desktop.
Docker compose to run MySQL with Adminer
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.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