Skip to content

Instantly share code, notes, and snippets.

@sgyyz
Created February 16, 2020 03:14
Show Gist options
  • Save sgyyz/758d2f44e63ac32f898a74db6406b812 to your computer and use it in GitHub Desktop.
Save sgyyz/758d2f44e63ac32f898a74db6406b812 to your computer and use it in GitHub Desktop.
MySQL
version: '3'
services:
mysql:
image: mysql:5.7
ports:
- "3306:3306"
command: "mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci"
volumes:
- mysql-dataset:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_DATABASE: your_database_name
redis:
image: redis
ports:
- "6379:6379"
volumes:
mysql-dataset:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment