Skip to content

Instantly share code, notes, and snippets.

@SahSantoshh
Created April 6, 2022 07:37
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 SahSantoshh/8ff41ce4dd57305358e98d43adff76b1 to your computer and use it in GitHub Desktop.
Save SahSantoshh/8ff41ce4dd57305358e98d43adff76b1 to your computer and use it in GitHub Desktop.
docker, docker-compose, mysql, mysql5.7, utf8 charset, sql mode traditional
version: "3.9"
services:
db:
image: mysql:5.7
restart: always
command: mysqld --sql_mode="" --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
MYSQL_DATABASE: 'kirus_development'
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_PASSWORD: 'password'
MYSQL_USER: 'sahh'
ports:
- '3306:3306'
volumes:
- my-db:/var/lib/mysql
volumes:
my-db:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment