Last active
February 14, 2019 12:14
-
-
Save harryxu/759d722d5db3a77ba3e3c2d2c1549598 to your computer and use it in GitHub Desktop.
docker 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.1' | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- ./data:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: 111 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment