Skip to content

Instantly share code, notes, and snippets.

@harryxu
Last active February 14, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harryxu/759d722d5db3a77ba3e3c2d2c1549598 to your computer and use it in GitHub Desktop.
Save harryxu/759d722d5db3a77ba3e3c2d2c1549598 to your computer and use it in GitHub Desktop.
docker mysql
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