Created
May 8, 2021 15:11
-
-
Save henriquetorquato/2f680e25030e66d38743b78682307bf2 to your computer and use it in GitHub Desktop.
Quick MySql configuration for Docker
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
FROM mysql:5.7 | |
# Update base image | |
RUN apt update && apt upgrade -y | |
# Set database root password | |
ENV MYSQL_ROOT_PASSWORD=toor | |
EXPOSE 3306 | |
# docker build -t custom_mysql:latest . | |
# docker run -d -p 3306:3306 custom_mysql:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment