Skip to content

Instantly share code, notes, and snippets.

@rameshdahiya
Created January 26, 2021 14:01
Show Gist options
  • Save rameshdahiya/7217cbcc19f442ed89d3f7bc4bf8f46e to your computer and use it in GitHub Desktop.
Save rameshdahiya/7217cbcc19f442ed89d3f7bc4bf8f46e to your computer and use it in GitHub Desktop.
Docker compose file for spining a MySQL 5.7 database with disabled sql mode
version: '3'
services:
mysqldb:
image: mysql:5.7
restart: always
tmpfs: /var/lib/mysql
command: --sql_mode=""
environment:
MYSQL_ROOT_PASSWORD: some-secret
ports:
- 3306:3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment