Last active
October 19, 2022 19:50
-
-
Save michaelcaxias/c916f8b65a710b0dfcc6eba8eb472bd9 to your computer and use it in GitHub Desktop.
Docker Compose for 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.9' | |
services: | |
db: | |
image: mysql:latest | |
container_name: mysql | |
ports: | |
- 3306:3306 | |
environment: | |
- MYSQL_ROOT_PASSWORD=123456 | |
restart: 'always' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add line
if using M1