Created
September 17, 2022 16:52
-
-
Save asafedainez/2a884043e4576a919bc1ed94aa96ef1f to your computer and use it in GitHub Desktop.
Docker Compose MySQL
This file contains 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' | |
services: | |
mysql: | |
image: mysql | |
command: --default-authentication-plugin=mysql_native_password | |
container_name: mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
# MYSQL_USER: mysql | |
# MYSQL_PASSWORD: mysql* | |
# MYSQL_DATABASE: test | |
ports: | |
- 3306:3306 | |
# volumes: | |
# - ./db_data:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment