Skip to content

Instantly share code, notes, and snippets.

@ziyoung
Created August 1, 2019 12:11
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 ziyoung/644f71d772a239745e3f9a54674a223c to your computer and use it in GitHub Desktop.
Save ziyoung/644f71d772a239745e3f9a54674a223c to your computer and use it in GitHub Desktop.
MySQL container
version: "3"
services:
my-db:
image: "mysql:5.7"
container_name: "my-db"
restart: always
environment:
MYSQL_ROOT_PASSWORD: 12345
volumes:
- ~/docker-data/mysql:/var/lib/mysql
ports:
- "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment