Skip to content

Instantly share code, notes, and snippets.

@cheese10yun
Created August 23, 2021 12:52
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 cheese10yun/1eb8cb36b965028fbb19c1fe56ef132e to your computer and use it in GitHub Desktop.
Save cheese10yun/1eb8cb36b965028fbb19c1fe56ef132e to your computer and use it in GitHub Desktop.
docker-social
version: '3'
services:
mysql_member:
container_name: mysql.social.local
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: 'social'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- '3366:3306'
volumes:
- './volumes/mysql/default:/var/lib/mysql'
command:
- 'mysqld'
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
- '--sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment